| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Impuesto extends AbstractEntryIdentifiable |
||
| 10 | { |
||
| 11 | /** @var bool */ |
||
| 12 | private $retencion; |
||
| 13 | |||
| 14 | /** @var bool */ |
||
| 15 | private $traslado; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | private $ambito; |
||
| 19 | |||
| 20 | /** @var string */ |
||
| 21 | private $entidad; |
||
| 22 | |||
| 23 | 6 | public function __construct( |
|
| 24 | string $id, |
||
| 25 | string $texto, |
||
| 26 | bool $retencion, |
||
| 27 | bool $traslado, |
||
| 28 | string $ambito, |
||
| 29 | string $entidad |
||
| 30 | ) { |
||
| 31 | 6 | parent::__construct($id, $texto, 0, 0); |
|
| 32 | 6 | $this->retencion = $retencion; |
|
| 33 | 6 | $this->traslado = $traslado; |
|
| 34 | 6 | $this->ambito = $ambito; |
|
| 35 | 6 | $this->entidad = $entidad; |
|
| 36 | } |
||
| 37 | |||
| 38 | 3 | public function retencion(): bool |
|
| 39 | { |
||
| 40 | 3 | return $this->retencion; |
|
| 41 | } |
||
| 42 | |||
| 43 | 3 | public function traslado(): bool |
|
| 44 | { |
||
| 45 | 3 | return $this->traslado; |
|
| 46 | } |
||
| 47 | |||
| 48 | 1 | public function ambito(): string |
|
| 49 | { |
||
| 50 | 1 | return $this->ambito; |
|
| 51 | } |
||
| 52 | |||
| 53 | 1 | public function entidad(): string |
|
| 56 | } |
||
| 57 | } |
||
| 58 |