SignContractsCommand   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 10
c 1
b 0
f 0
dl 0
loc 31
ccs 10
cts 10
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A privacy() 0 3 1
A snid() 0 3 1
A contract() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpCfdi\Finkok\Services\Manifest;
6
7
class SignContractsCommand
8
{
9
    /** @var string */
10
    private $snid;
11
12
    /** @var string */
13
    private $privacy;
14
15
    /** @var string */
16
    private $contract;
17
18 6
    public function __construct(string $snid, string $privacy, string $contract)
19
    {
20 6
        $this->snid = $snid;
21 6
        $this->privacy = $privacy;
22 6
        $this->contract = $contract;
23
    }
24
25 6
    public function snid(): string
26
    {
27 6
        return $this->snid;
28
    }
29
30 6
    public function privacy(): string
31
    {
32 6
        return $this->privacy;
33
    }
34
35 6
    public function contract(): string
36
    {
37 6
        return $this->contract;
38
    }
39
}
40