Esempio 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;
 }
Esempio n. 2
0
 /**
  * Get the client associated with the event
  *
  * @return ClientInterface
  */
 public function getClient()
 {
     return $this->transaction->getClient();
 }