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

Colonia   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 31
ccs 10
cts 10
cp 1
rs 10
wmc 4

4 Methods

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