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

GetContractsCommand   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
dl 0
loc 49
ccs 14
cts 14
cp 1
rs 10
c 1
b 0
f 0
wmc 6

6 Methods

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