| 1 | <?php |
||
| 11 | class ConsumerUnity |
||
| 12 | { |
||
| 13 | const BANDEIRANTE = 1; |
||
| 14 | const CPFL = 3; |
||
| 15 | const CPFL_PIRATININGA = 4; |
||
| 16 | const AMPLA = 5; |
||
| 17 | const ESCELSA_ES = 19; |
||
| 18 | const CELESC = 26; |
||
| 19 | const RGE_RS = 31; |
||
| 20 | const COELCE = 73; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | */ |
||
| 25 | private $number; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | private $code; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var DateTime |
||
| 34 | */ |
||
| 35 | private $read; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var DateTime |
||
| 39 | */ |
||
| 40 | private $maturity; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Constructor |
||
| 44 | * |
||
| 45 | * @param DateTime $read |
||
| 46 | * @param DateTime $maturity |
||
| 47 | */ |
||
| 48 | 10 | public function __construct(DateTime $read = null, DateTime $maturity = null) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Get the number |
||
| 56 | * |
||
| 57 | * @return int |
||
| 58 | */ |
||
| 59 | 1 | public function getNumber(): int |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Set the consumer number |
||
| 66 | * |
||
| 67 | * @param int $number |
||
| 68 | */ |
||
| 69 | 1 | public function setNumber(int $number) |
|
| 73 | |||
| 74 | /** |
||
| 75 | * @return DateTime |
||
| 76 | */ |
||
| 77 | 1 | public function getRead(): DateTime |
|
| 81 | |||
| 82 | /** |
||
| 83 | * @param DateTime $read |
||
| 84 | */ |
||
| 85 | 1 | public function setRead(DateTime $read) |
|
| 89 | |||
| 90 | /** |
||
| 91 | * @return DateTime |
||
| 92 | */ |
||
| 93 | 1 | public function getMaturity(): DateTime |
|
| 97 | |||
| 98 | /** |
||
| 99 | * @param DateTime $maturity |
||
| 100 | */ |
||
| 101 | 1 | public function setMaturity(DateTime $maturity) |
|
| 105 | |||
| 106 | /** |
||
| 107 | * @return number |
||
| 108 | */ |
||
| 109 | 2 | public function getCode(): int |
|
| 113 | |||
| 114 | /** |
||
| 115 | * @param number $code |
||
| 116 | */ |
||
| 117 | 1 | public function setCode(int $code) |
|
| 121 | } |
||
| 122 |