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

GetSignedContractsCommand::rfc()   A

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
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 0
f 0
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