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

GetContractsCommand   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 40
ccs 14
cts 14
cp 1
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A address() 0 3 1
A rfc() 0 3 1
A name() 0 3 1
A email() 0 3 1
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