Skip to content

Commit 21683ee

Browse files
authored
Merge pull request #120 from async-interop/loop-info
Rename Loop::info to Loop::getInfo
2 parents db1661b + 5eeb96a commit 21683ee

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Loop.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,12 @@ public static function setErrorHandler(callable $callback = null)
414414
* Implementations MAY optionally add more information in the array but at minimum the above `key => value` format
415415
* MUST always be provided.
416416
*
417-
* @return array
417+
* @return array Statistics about the loop in the described format.
418418
*/
419-
public static function info()
419+
public static function getInfo()
420420
{
421421
$driver = self::$driver ?: self::get();
422-
return $driver->info();
422+
return $driver->getInfo();
423423
}
424424

425425
/**

src/Loop/Driver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ abstract public function setErrorHandler(callable $callback = null);
268268
* Implementations MAY optionally add more information in the array but at minimum the above `key => value` format
269269
* MUST always be provided.
270270
*
271-
* @return array
271+
* @return array Statistics about the loop in the described format.
272272
*/
273-
abstract public function info();
273+
abstract public function getInfo();
274274

275275
/**
276276
* Get the underlying loop handle.

test/DummyDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function disable($watcherId) {}
4343
public function cancel($watcherId) {}
4444
public function reference($watcherId) {}
4545
public function unreference($watcherId) {}
46-
public function info() {}
46+
public function getInfo() {}
4747
public function getHandle() {}
4848
}

0 commit comments

Comments
 (0)