EditCommand::status()   A
last analyzed

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\Registration;
6
7
class EditCommand
8
{
9
    /** @var string */
10
    private $rfc;
11
12
    /** @var CustomerStatus */
13
    private $status;
14
15
    /** @var string */
16
    private $certificate;
17
18
    /** @var string */
19
    private $privateKey;
20
21
    /** @var string */
22
    private $passPhrase;
23
24 6
    public function __construct(
25
        string $rfc,
26
        CustomerStatus $status,
27
        string $certificate = '',
28
        string $privateKey = '',
29
        string $passPhrase = ''
30
    ) {
31 6
        $this->rfc = $rfc;
32 6
        $this->status = $status;
33 6
        $this->certificate = $certificate;
34 6
        $this->privateKey = $privateKey;
35 6
        $this->passPhrase = $passPhrase;
36
    }
37
38 6
    public function rfc(): string
39
    {
40 6
        return $this->rfc;
41
    }
42
43 6
    public function status(): CustomerStatus
44
    {
45 6
        return $this->status;
46
    }
47
48 6
    public function certificate(): string
49
    {
50 6
        return $this->certificate;
51
    }
52
53 6
    public function privateKey(): string
54
    {
55 6
        return $this->privateKey;
56
    }
57
58 6
    public function passPhrase(): string
59
    {
60 6
        return $this->passPhrase;
61
    }
62
}
63