Esempio n. 1
0
 /**
  * @param puzzle_adapter_TransactionInterface $transaction Transaction that contains the
  *     request and response.
  * @throws RuntimeException
  */
 public function __construct(puzzle_adapter_TransactionInterface $transaction)
 {
     parent::__construct($transaction);
     if (!$transaction->getResponse()) {
         throw new RuntimeException('A response must be present');
     }
 }
 /**
  * @param puzzle_adapter_TransactionInterface $transaction  Transaction
  * @param array                                      $transferInfo Transfer statistics
  */
 public function __construct(puzzle_adapter_TransactionInterface $transaction, $transferInfo = array())
 {
     parent::__construct($transaction);
     $this->transferInfo = $transferInfo;
 }