Passed
Pull Request — master (#11)
by Carlos C
01:51
created

GetContractsCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 4
dl 0
loc 6
ccs 5
cts 5
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 2
    public function __construct(string $rfc, string $name, string $address, string $email)
22
    {
23 2
        $this->rfc = $rfc;
24 2
        $this->name = $name;
25 2
        $this->address = $address;
26 2
        $this->email = $email;
27 2
    }
28
29 2
    public function rfc(): string
30
    {
31 2
        return $this->rfc;
32
    }
33
34 2
    public function name(): string
35
    {
36 2
        return $this->name;
37
    }
38
39 2
    public function address(): string
40
    {
41 2
        return $this->address;
42
    }
43
44 2
    public function email(): string
45
    {
46 2
        return $this->email;
47
    }
48
}
49