Completed
Pull Request — master (#13)
by Carlos C
03:06
created

GetSignedContractsCommand   A

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
eloc 10
dl 0
loc 31
ccs 11
cts 11
cp 1
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

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