Total Complexity | 7 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class AcceptRejectSigner |
||
14 | { |
||
15 | public const DEFAULT_PACRFC = 'CVD110412TF6'; |
||
16 | |||
17 | /** @var string */ |
||
18 | private $uuid; |
||
19 | |||
20 | /** @var CancelAnswer */ |
||
21 | private $answer; |
||
22 | |||
23 | /** @var string */ |
||
24 | private $pacRfc; |
||
25 | |||
26 | /** @var DateTimeImmutable */ |
||
27 | private $dateTime; |
||
28 | |||
29 | /** |
||
30 | * GetRelatedSigner constructor. |
||
31 | * |
||
32 | * @param string $uuid |
||
33 | * @param CancelAnswer $answer |
||
34 | * @param DateTimeImmutable|null $dateTime If null or ommited then use current time and time zone |
||
35 | * @param string $pacRfc If empty or ommited then uses DEFAULT_PACRFC |
||
36 | */ |
||
37 | 1 | public function __construct( |
|
47 | 1 | } |
|
48 | |||
49 | 1 | public function uuid(): string |
|
50 | { |
||
51 | 1 | return $this->uuid; |
|
52 | } |
||
53 | |||
54 | 1 | public function answer(): CancelAnswer |
|
57 | } |
||
58 | |||
59 | 1 | public function pacRfc(): string |
|
62 | } |
||
63 | |||
64 | 1 | public function dateTime(): DateTimeImmutable |
|
67 | } |
||
68 | |||
69 | 1 | public function sign(Credential $credential): string |
|
75 |