Total Complexity | 6 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class PaymentTerms extends BaseComponent |
||
16 | { |
||
17 | |||
18 | protected $ID; |
||
19 | protected $PaymentMeansID; |
||
20 | /** @var Amount */ |
||
21 | protected $Amount; |
||
22 | protected $PaymentDueDate; |
||
23 | public function __construct($ID, $PaymentMeansID) |
||
27 | } |
||
28 | function xmlSerialize(Writer $writer) |
||
42 | ]); |
||
43 | } |
||
44 | } |
||
45 | |||
46 | public function setAmount($Amount) |
||
47 | { |
||
48 | $this->Amount = $Amount; |
||
49 | return $this; |
||
50 | } |
||
51 | |||
52 | public function setPaymentDueDate($PaymentDueDate) |
||
56 | } |
||
57 | } |
||
58 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.