Пример #1
0
 private function dump(BaseAfterCallEvent $event)
 {
     $requestId = $event->getRequestId();
     if (!empty($requestId)) {
         $this->dumper->dump($requestId, $event->getRequest(), $event->getResponse());
     }
 }
Пример #2
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;
 }
Пример #3
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;
 }