Total Complexity | 6 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class AddCommand |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $rfc; |
||
11 | |||
12 | /** @var CustomerType */ |
||
13 | private $type; |
||
14 | |||
15 | /** @var string */ |
||
16 | private $certificate; |
||
17 | |||
18 | /** @var string */ |
||
19 | private $privateKey; |
||
20 | |||
21 | /** @var string */ |
||
22 | private $passPhrase; |
||
23 | |||
24 | 3 | public function __construct( |
|
25 | string $rfc, |
||
26 | ?CustomerType $type = null, |
||
27 | string $certificate = '', |
||
28 | string $privateKey = '', |
||
29 | string $passPhrase = '' |
||
30 | ) { |
||
31 | 3 | $this->rfc = $rfc; |
|
32 | 3 | $this->type = $type ?? CustomerType::ondemand(); |
|
33 | 3 | $this->certificate = $certificate; |
|
34 | 3 | $this->privateKey = $privateKey; |
|
35 | 3 | $this->passPhrase = $passPhrase; |
|
36 | 3 | } |
|
37 | |||
38 | 3 | public function rfc(): string |
|
41 | } |
||
42 | |||
43 | 3 | public function type(): CustomerType |
|
44 | { |
||
45 | 3 | return $this->type; |
|
46 | } |
||
47 | |||
48 | 3 | public function certificate(): string |
|
49 | { |
||
50 | 3 | return $this->certificate; |
|
51 | } |
||
52 | |||
53 | 3 | public function privateKey(): string |
|
56 | } |
||
57 | |||
58 | 3 | public function passPhrase(): string |
|
61 | } |
||
62 | } |
||
63 |