Skip to content

Commit 53bd12b

Browse files
committed
Rename Loop::info to Loop::getInfo
We use `get` for all other similar methods, too. Closes #102.
1 parent db1661b commit 53bd12b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Loop.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ public static function setErrorHandler(callable $callback = null)
416416
*
417417
* @return array
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ abstract public function setErrorHandler(callable $callback = null);
270270
*
271271
* @return array
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)