jxcodes /
f72x
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * MÓDULO DE EMISIÓN ELECTRÓNICA F72X |
||
| 5 | * UBL 2.1 |
||
| 6 | * Version 1.0 |
||
| 7 | * |
||
| 8 | * Copyright 2021, Jaime Cruz |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace F72X\Sunat; |
||
| 12 | |||
| 13 | class CreditInstallment |
||
| 14 | { |
||
| 15 | private $id; |
||
| 16 | private $amount; |
||
| 17 | private $paymentDueDate; |
||
| 18 | // Getters |
||
| 19 | function getId() |
||
| 20 | { |
||
| 21 | return $this->id; |
||
| 22 | } |
||
| 23 | function getAmmount() |
||
|
0 ignored issues
–
show
|
|||
| 24 | { |
||
| 25 | return $this->amount; |
||
| 26 | } |
||
| 27 | function getPaymentDueDate() |
||
|
0 ignored issues
–
show
|
|||
| 28 | { |
||
| 29 | return $this->paymentDueDate; |
||
| 30 | } |
||
| 31 | // Setters |
||
| 32 | function setId($id) |
||
|
0 ignored issues
–
show
|
|||
| 33 | { |
||
| 34 | $this->id = $id; |
||
| 35 | return $this; |
||
| 36 | } |
||
| 37 | function setAmount($amount) |
||
|
0 ignored issues
–
show
|
|||
| 38 | { |
||
| 39 | $this->amount = $amount; |
||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | function setPaymentDueDate($paymentDueDate) |
||
|
0 ignored issues
–
show
|
|||
| 43 | { |
||
| 44 | $this->paymentDueDate = $paymentDueDate; |
||
| 45 | return $this; |
||
| 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.