Passed
Push — main ( b480f2...a8d709 )
by Carlos C
02:53 queued 12s
created

GetContractsCommand::rfc()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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
    /** @var string */
22
    private $snid;
23
24 7
    public function __construct(string $rfc, string $name, string $address, string $email, string $snid)
25
    {
26 7
        $this->rfc = $rfc;
27 7
        $this->name = $name;
28 7
        $this->address = $address;
29 7
        $this->email = $email;
30 7
        $this->snid = $snid;
31
    }
32
33 7
    public function rfc(): string
34
    {
35 7
        return $this->rfc;
36
    }
37
38 7
    public function name(): string
39
    {
40 7
        return $this->name;
41
    }
42
43 7
    public function address(): string
44
    {
45 7
        return $this->address;
46
    }
47
48 7
    public function email(): string
49
    {
50 7
        return $this->email;
51
    }
52
53 7
    public function snid(): string
54
    {
55 7
        return $this->snid;
56
    }
57
}
58