Passed
Push — master ( 75ecec...113700 )
by Carlos C
01:14 queued 12s
created

RegimenFiscal   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 29
ccs 8
cts 8
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A aplicaMoral() 0 3 1
A aplicaFisica() 0 3 1
A __construct() 0 11 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpCfdi\SatCatalogos\CFDI40;
6
7
use PhpCfdi\SatCatalogos\Common\AbstractEntryIdentifiable;
8
9
class RegimenFiscal extends AbstractEntryIdentifiable
10
{
11
    /** @var bool */
12
    private $aplicaFisica;
13
14
    /** @var bool */
15
    private $aplicaMoral;
16
17 6
    public function __construct(
18
        string $id,
19
        string $texto,
20
        bool $aplicaFisica,
21
        bool $aplicaMoral,
22
        int $vigenteDesde,
23
        int $vigenteHasta
24
    ) {
25 6
        parent::__construct($id, $texto, $vigenteDesde, $vigenteHasta);
26 6
        $this->aplicaFisica = $aplicaFisica;
27 6
        $this->aplicaMoral = $aplicaMoral;
28
    }
29
30 3
    public function aplicaFisica(): bool
31
    {
32 3
        return $this->aplicaFisica;
33
    }
34
35 3
    public function aplicaMoral(): bool
36
    {
37 3
        return $this->aplicaMoral;
38
    }
39
}
40