public function findTransaction($handle)
    {
        foreach ($this->handles as $transaction) {
            if ($this->handles[$transaction] === $handle) {
                return $transaction;
            }
        }

        throw new AdapterException('No curl handle was found');
    }
public function findTransaction($handle)
    {
        foreach ($this->handles as $transaction) {
            if ($this->handles[$transaction] === $handle) {
                return $transaction;
            }
        }

        throw new AdapterException('No curl handle was found');
    }
public function findTransaction ( $ handle ) { foreach ( $ this -> handles as $ transaction ) { if ( $ this -> handles [ $ transaction ] === $ handle ) { return $ transaction ; } } throw new AdapterException ( 'No curl handle was found' ) ; }
Find a transaction for a given curl handle

@param resource $handle Curl handle

@return TransactionInterface
@throws AdapterException if a transaction is not found
Find a transaction for a given curl handle