function __construct($s = '') { if (!extension_loaded('xmlrpc')) { throw new \Exception('php5-xmlrpc not found'); } parent::__construct($s); }
public function __construct($ip, $port, $rpc_key, $timeout = 5) { $this->ip = $ip; $this->port = $port; $this->rpc_key = $rpc_key; $this->timeout = $timeout; parent::__construct(); }
/** * @param Response $response * @param CurlAdapter $curlAdapter */ public function __construct(Response $response, CurlAdapter $curlAdapter) { parent::__construct($response); $this->curlAdapter = $curlAdapter; }
public function __construct($token = null) { $this->authorizer_access_token = $token instanceof AccessToken ? $token->getToken() : $token; parent::__construct(); }
public function __construct($token = null) { $this->component_access_token = $token instanceof ComponentAccessToken ? $token->getToken() : $token; parent::__construct(); }