1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 8 9 10 11 12 13 14 15
16 class AgreementTransactions extends PayPalModel
17 {
18 19 20 21 22 23 24
25 public function setAgreementTransactionList($agreement_transaction_list)
26 {
27 $this->agreement_transaction_list = $agreement_transaction_list;
28 return $this;
29 }
30
31 32 33 34 35
36 public function getAgreementTransactionList()
37 {
38 return $this->agreement_transaction_list;
39 }
40
41 42 43 44 45 46
47 public function addAgreementTransactionList($agreementTransaction)
48 {
49 if (!$this->getAgreementTransactionList()) {
50 return $this->setAgreementTransactionList(array($agreementTransaction));
51 } else {
52 return $this->setAgreementTransactionList(
53 array_merge($this->getAgreementTransactionList(), array($agreementTransaction))
54 );
55 }
56 }
57
58 59 60 61 62 63
64 public function removeAgreementTransactionList($agreementTransaction)
65 {
66 return $this->setAgreementTransactionList(
67 array_diff($this->getAgreementTransactionList(), array($agreementTransaction))
68 );
69 }
70
71 }
72