Пример #1
0
 function __construct($s = '')
 {
     if (!extension_loaded('xmlrpc')) {
         throw new \Exception('php5-xmlrpc not found');
     }
     parent::__construct($s);
 }
Пример #2
0
 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();
 }
Пример #3
0
 /**
  * @param Response $response
  * @param CurlAdapter $curlAdapter
  */
 public function __construct(Response $response, CurlAdapter $curlAdapter)
 {
     parent::__construct($response);
     $this->curlAdapter = $curlAdapter;
 }
Пример #4
0
 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();
 }