Passed
Push — main ( 1fd560...f6ed88 )
by Carlos C
09:50 queued 13s
created

GetContractsCommand::snid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpCfdi\Finkok\Services\Manifest;
6
7
class GetContractsCommand
8
{
9
    /** @var string */
10
    private $rfc;
11
12
    /** @var string */
13
    private $name;
14
15
    /** @var string */
16
    private $address;
17
18
    /** @var string */
19
    private $email;
20
21 7
    /** @var string */
22
    private $snid;
23 7
24 7
    public function __construct(string $rfc, string $name, string $address, string $email, string $snid)
25 7
    {
26 7
        $this->rfc = $rfc;
27 7
        $this->name = $name;
28
        $this->address = $address;
29 7
        $this->email = $email;
30
        $this->snid = $snid;
31 7
    }
32
33
    public function rfc(): string
34 7
    {
35
        return $this->rfc;
36 7
    }
37
38
    public function name(): string
39 7
    {
40
        return $this->name;
41 7
    }
42
43
    public function address(): string
44 7
    {
45
        return $this->address;
46 7
    }
47
48
    public function email(): string
49
    {
50
        return $this->email;
51
    }
52
53
    public function snid(): string
54
    {
55
        return $this->snid;
56
    }
57
}
58