| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class CreditInstallment |
||
| 14 | { |
||
| 15 | private $id; |
||
| 16 | private $amount; |
||
| 17 | private $paymentDueDate; |
||
| 18 | // Getters |
||
| 19 | function getId() |
||
| 22 | } |
||
| 23 | function getAmmount() |
||
| 26 | } |
||
| 27 | function getPaymentDueDate() |
||
| 30 | } |
||
| 31 | // Setters |
||
| 32 | function setId($id) |
||
| 36 | } |
||
| 37 | function setAmount($amount) |
||
| 38 | { |
||
| 39 | $this->amount = $amount; |
||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | function setPaymentDueDate($paymentDueDate) |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
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.