PayPalApiAgreementTransactions

Class AgreementTransactions.

Defined (1)

The class is defined in the following location(s).

/classes/lib/PayPal/Api/AgreementTransactions.php  
  1. class AgreementTransactions extends PayPalModel 
  2. /** 
  3. * Array of agreement_transaction object. 
  4. * @param \PayPal\Api\AgreementTransaction[] $agreement_transaction_list 
  5. *  
  6. * @return $this 
  7. */ 
  8. public function setAgreementTransactionList($agreement_transaction_list) 
  9. $this->agreement_transaction_list = $agreement_transaction_list; 
  10. return $this; 
  11.  
  12. /** 
  13. * Array of agreement_transaction object. 
  14. * @return \PayPal\Api\AgreementTransaction[] 
  15. */ 
  16. public function getAgreementTransactionList() 
  17. return $this->agreement_transaction_list; 
  18.  
  19. /** 
  20. * Append AgreementTransactionList to the list. 
  21. * @param \PayPal\Api\AgreementTransaction $agreementTransaction 
  22. * @return $this 
  23. */ 
  24. public function addAgreementTransactionList($agreementTransaction) 
  25. if (!$this->getAgreementTransactionList()) { 
  26. return $this->setAgreementTransactionList(array($agreementTransaction)); 
  27. } else { 
  28. return $this->setAgreementTransactionList( 
  29. array_merge($this->getAgreementTransactionList(), array($agreementTransaction)) 
  30. ); 
  31.  
  32. /** 
  33. * Remove AgreementTransactionList from the list. 
  34. * @param \PayPal\Api\AgreementTransaction $agreementTransaction 
  35. * @return $this 
  36. */ 
  37. public function removeAgreementTransactionList($agreementTransaction) 
  38. return $this->setAgreementTransactionList( 
  39. array_diff($this->getAgreementTransactionList(), array($agreementTransaction)) 
  40. ); 
  41.