Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
17 | 297 | protected function setUpVigencias(int $vigenteDesde, int $vigenteHasta): void |
|
18 | { |
||
19 | 297 | if ($vigenteDesde < 0) { |
|
20 | 2 | throw new SatCatalogosLogicException('El campo vigente desde no puede ser menor a cero'); |
|
21 | } |
||
22 | 295 | if ($vigenteHasta < 0) { |
|
23 | 2 | throw new SatCatalogosLogicException('El campo vigente hasta no puede ser menor a cero'); |
|
24 | } |
||
25 | 293 | $this->vigenteDesde = $vigenteDesde; |
|
26 | 293 | $this->vigenteHasta = $vigenteHasta; |
|
27 | } |
||
55 |