| 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 | * @param int $number |
||
| 48 | * @param int $code |
||
| 49 | */ |
||
| 50 | 10 | public function __construct(DateTime $read = null, DateTime $maturity = null, int $number = 0, int $code = 0) |
|
| 57 | |||
| 58 | /** |
||
| 59 | * Get the number |
||
| 60 | * |
||
| 61 | * @return int |
||
| 62 | */ |
||
| 63 | 1 | public function getNumber(): int |
|
| 67 | |||
| 68 | /** |
||
| 69 | * Set the consumer number |
||
| 70 | * |
||
| 71 | * @param int $number |
||
| 72 | */ |
||
| 73 | 1 | public function setNumber(int $number) |
|
| 77 | |||
| 78 | /** |
||
| 79 | * @return DateTime |
||
| 80 | */ |
||
| 81 | 1 | public function getRead(): DateTime |
|
| 85 | |||
| 86 | /** |
||
| 87 | * @param DateTime $read |
||
| 88 | */ |
||
| 89 | 1 | public function setRead(DateTime $read) |
|
| 93 | |||
| 94 | /** |
||
| 95 | * @return DateTime |
||
| 96 | */ |
||
| 97 | 1 | public function getMaturity(): DateTime |
|
| 101 | |||
| 102 | /** |
||
| 103 | * @param DateTime $maturity |
||
| 104 | */ |
||
| 105 | 1 | public function setMaturity(DateTime $maturity) |
|
| 109 | |||
| 110 | /** |
||
| 111 | * @return number |
||
| 112 | */ |
||
| 113 | 2 | public function getCode(): int |
|
| 117 | |||
| 118 | /** |
||
| 119 | * @param number $code |
||
| 120 | */ |
||
| 121 | 1 | public function setCode(int $code) |
|
| 125 | } |
||
| 126 |