connect($host, $port, $timeout); if($auth !== null) { $handler->auth($auth); } return $handler; } public static function __callStatic($method, $arguments) { return call_user_func_array([self::getHandler(), $method], $arguments); } }