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