Ejemplo n.º 1
0
 private function getDefaultTimeout(TransactionInterface $transaction)
 {
     $timeout = $transaction->getRequest()->getConfig()->get('timeout');
     if ($timeout !== null) {
         return $timeout;
     }
     $timeout = $transaction->getClient()->getDefaultOption('timeout');
     if (null == $timeout) {
         $timeout = ini_get('default_socket_timeout');
     }
     return $timeout;
 }
Ejemplo n.º 2
0
 /**
  * Get the client associated with the event
  *
  * @return ClientInterface
  */
 public function getClient()
 {
     return $this->transaction->getClient();
 }