EditCommand   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A status() 0 3 1
A rfc() 0 3 1
A passPhrase() 0 3 1
A certificate() 0 3 1
A privateKey() 0 3 1
A __construct() 0 12 1
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