| Total Complexity | 8 | 
| Total Lines | 66 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 11 | class CodigoPostal extends AbstractEntryIdentifiable implements EntryIdentifiable  | 
            ||
| 12 | { | 
            ||
| 13 | /** @var string */  | 
            ||
| 14 | private $estado;  | 
            ||
| 15 | |||
| 16 | /** @var string */  | 
            ||
| 17 | private $municipio;  | 
            ||
| 18 | |||
| 19 | /** @var string */  | 
            ||
| 20 | private $localidad;  | 
            ||
| 21 | |||
| 22 | /** @var int */  | 
            ||
| 23 | private $estimuloFrontera;  | 
            ||
| 24 | |||
| 25 | /** @var HusoHorario */  | 
            ||
| 26 | private $husoHorario;  | 
            ||
| 27 | |||
| 28 | 7 | public function __construct(  | 
            |
| 29 | string $id,  | 
            ||
| 30 | string $estado,  | 
            ||
| 31 | string $municipio,  | 
            ||
| 32 | string $localidad,  | 
            ||
| 33 | int $estimuloFrontera,  | 
            ||
| 34 | HusoHorario $husoHorario,  | 
            ||
| 35 | int $vigenteDesde,  | 
            ||
| 36 | int $vigenteHasta  | 
            ||
| 37 |     ) { | 
            ||
| 38 | 7 | parent::__construct($id, $id, $vigenteDesde, $vigenteHasta);  | 
            |
| 39 | 7 |         if ('' === $estado) { | 
            |
| 40 | 1 |             throw new SatCatalogosLogicException('El campo estado no puede ser una cadena de caracteres vacía'); | 
            |
| 41 | }  | 
            ||
| 42 | 6 | $this->estado = $estado;  | 
            |
| 43 | 6 | $this->municipio = $municipio;  | 
            |
| 44 | 6 | $this->localidad = $localidad;  | 
            |
| 45 | 6 | $this->estimuloFrontera = $estimuloFrontera;  | 
            |
| 46 | 6 | $this->husoHorario = $husoHorario;  | 
            |
| 47 | }  | 
            ||
| 48 | |||
| 49 | 2 | public function estado(): string  | 
            |
| 52 | }  | 
            ||
| 53 | |||
| 54 | 2 | public function municipio(): string  | 
            |
| 55 |     { | 
            ||
| 56 | 2 | return $this->municipio;  | 
            |
| 57 | }  | 
            ||
| 58 | |||
| 59 | 2 | public function localidad(): string  | 
            |
| 62 | }  | 
            ||
| 63 | |||
| 64 | 4 | public function estimuloFrontera(): int  | 
            |
| 67 | }  | 
            ||
| 68 | |||
| 69 | 3 | public function hasEstimuloFrontera(): bool  | 
            |
| 70 |     { | 
            ||
| 71 | 3 | return 0 !== $this->estimuloFrontera;  | 
            |
| 72 | }  | 
            ||
| 73 | |||
| 74 | 1 | public function husoHorario(): HusoHorario  | 
            |
| 77 | }  | 
            ||
| 78 | }  | 
            ||
| 79 |