From a020880d5352dda2477447a65ab7d93c31209168 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Sat, 21 May 2016 01:31:18 +0200 Subject: [PATCH] getLoopHandle() => getHandle() on Driver only --- src/Loop.php | 10 ---------- src/LoopDriver.php | 4 +++- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/Loop.php b/src/Loop.php index 6b97bac..c62cf56 100644 --- a/src/Loop.php +++ b/src/Loop.php @@ -222,16 +222,6 @@ final class Loop return self::get()->supports($feature); } - /** - * Get the underlying loop handle. - * - * @return null|object|resource The loop handle the event loop operates on. Null if there is none. - */ - public static function getLoopHandle() - { - return self::get()->getLoopHandle(); - } - /** * Disable construction as this is a static class. */ diff --git a/src/LoopDriver.php b/src/LoopDriver.php index 2721543..7beeebe 100644 --- a/src/LoopDriver.php +++ b/src/LoopDriver.php @@ -157,7 +157,9 @@ interface LoopDriver * * Example: the uv_loop resource for libuv or the EvLoop object for libev or null for a native driver * + * Note: This function is *not* exposed in the Loop class; users shall access it directly on the respective loop instance. + * * @return null|object|resource The loop handle the event loop operates on. Null if there is none. */ - public static function getLoopHandle(); + public static function getHandle(); }