- public static final function createClientByProtokol ($protocol, $socketResource = FALSE) {
- // Is the class name valid and is the class there?
- if (empty($protocol)) {
- // Get an instance of this factory
- $factoryInstance = new ClientFactory();
-
- // Throw an exception here
- throw new EmptyVariableException(array($factoryInstance, 'protocol'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
- } // END - if
-