From: Roland Haeder Date: Tue, 23 Dec 2014 22:46:49 +0000 (+0100) Subject: Also this ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=38b72ffe74c133db5dfe999187de21e5eebf180f;p=core.git Also this ... Signed-off-by: Roland Häder --- diff --git a/inc/classes/exceptions/socket/class_NoSocketRegisteredException.php b/inc/classes/exceptions/socket/class_NoSocketRegisteredException.php index e8d84753..5baefb17 100644 --- a/inc/classes/exceptions/socket/class_NoSocketRegisteredException.php +++ b/inc/classes/exceptions/socket/class_NoSocketRegisteredException.php @@ -29,7 +29,7 @@ class NoSocketRegisteredException extends AbstractSocketException { * @param $code Error code * @return void */ - public function __construct (ProtocolHandler $protocolInstance, $code) { + public function __construct (HandleableProtocol $protocolInstance, $code) { // Construct the message $message = sprintf('[%s:] Requested socket is not yet registered.', $protocolInstance->__toString() diff --git a/inc/classes/interfaces/registry/socket/class_RegisterableSocket.php b/inc/classes/interfaces/registry/socket/class_RegisterableSocket.php index 1f197295..6a93f752 100644 --- a/inc/classes/interfaces/registry/socket/class_RegisterableSocket.php +++ b/inc/classes/interfaces/registry/socket/class_RegisterableSocket.php @@ -30,7 +30,7 @@ interface RegisterableSocket extends Registerable { * @param $socketResource A valid socket resource * @return $isRegistered Whether the given socket resource is registered */ - function isSocketRegistered (ProtocolHandler $protocolInstance, $socketResource); + function isSocketRegistered (HandleableProtocol $protocolInstance, $socketResource); /** * Registeres given socket for listener or throws an exception if it is already registered @@ -40,7 +40,7 @@ interface RegisterableSocket extends Registerable { * @return void * @throws SocketAlreadyRegisteredException If the given socket is already registered */ - function registerSocket (ProtocolHandler $protocolInstance, $socketResource); + function registerSocket (HandleableProtocol $protocolInstance, $socketResource); /** * Getter for given listener's socket resource @@ -49,7 +49,7 @@ interface RegisterableSocket extends Registerable { * @return $socketResource A valid socket resource * @throws NoSocketRegisteredException If the requested socket is not registered */ - function getRegisteredSocketResource (ProtocolHandler $protocolInstance); + function getRegisteredSocketResource (HandleableProtocol $protocolInstance); /** * "Getter" for protocol/connection instance from given package data diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 07e9a2c6..9fe6e72c 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -1023,7 +1023,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { * @param $protocolInstance An instance of an HandleableProtocol * @return void */ - public final function setProtocolInstance (ProtocolHandler $protocolInstance = NULL) { + public final function setProtocolInstance (HandleableProtocol $protocolInstance = NULL) { $this->protocolInstance = $protocolInstance; } diff --git a/inc/classes/main/factories/client/class_ClientFactory.php b/inc/classes/main/factories/client/class_ClientFactory.php index 3ef532d1..5aacfcdc 100644 --- a/inc/classes/main/factories/client/class_ClientFactory.php +++ b/inc/classes/main/factories/client/class_ClientFactory.php @@ -40,7 +40,7 @@ class ClientFactory extends ObjectFactory { * @param $socketResource A valid socket resource (optional) * @return $clientInstance An instance of the requested client */ - public static final function createClientByProtocolInstance (ProtocolHandler $protocolInstance, $socketResource = FALSE) { + public static final function createClientByProtocolInstance (HandleableProtocol $protocolInstance, $socketResource = FALSE) { // Default is NULL (to initialize variable) $clientInstance = NULL;