public function __construct($rpc, SecurityToken $token) { parent::__construct($rpc['method'], $rpc['method'], $token); if (isset($rpc->params)) { $this->data = $rpc['params']; } else { $this->data = array(); } }
/** * * @param array $rpc * @param SecurityToken $token */ public function __construct($rpc, SecurityToken $token) { if (empty($rpc['method'])) { throw new SocialSpiException("Missing method in RPC call"); } parent::__construct($rpc['method'], $rpc['method'], $token); if (isset($rpc['params'])) { $this->data = $rpc['params']; } else { $this->data = array(); } }
public function __construct($service, $method, SecurityToken $token, $inputConverterMethod, $outputConverter) { parent::__construct($service, $method, $token); $this->inputConverterMethod = $inputConverterMethod; $this->outputConverter = $outputConverter; }