Esempio n. 1
0
 /**
  * Constructor.
  *
  * @param string     $methodRef The fullname of API method
  * @param array      $params    The params for method of API
  * @param User       $user      The user
  * @param SoapClient $client    The client
  * @param mixed      $response  The result from API
  *
  * @throws \InvalidArgumentException
  */
 public function __construct($methodRef, array $params, User $user, SoapClient $client, $response)
 {
     parent::__construct($methodRef, $params, $user, $client);
     $this->result = $response;
 }
Esempio n. 2
0
 /**
  * Constructor.
  *
  * @param string     $methodRef The fullname of API method
  * @param array      $params    The params for method of API
  * @param User       $user      The configuration
  * @param SoapClient $client    The SOAP client
  * @param \Exception $exception The thrown exception
  */
 public function __construct($methodRef, array $params, User $user, SoapClient $client, \Exception $exception)
 {
     parent::__construct($methodRef, $params, $user, $client);
     $this->exception = $exception;
 }