Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 78.56% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class CancelSigner |
||
13 | { |
||
14 | /** @var array<string> */ |
||
15 | private $uuids; |
||
16 | |||
17 | /** @var DateTimeImmutable */ |
||
18 | private $dateTime; |
||
19 | |||
20 | /** |
||
21 | * CancelSigner constructor |
||
22 | * |
||
23 | * @param array<string> $uuid |
||
24 | * @param DateTimeImmutable|null $dateTime If null or ommited then use current time and time zone |
||
25 | */ |
||
26 | 1 | public function __construct(array $uuid, ?DateTimeImmutable $dateTime = null) |
|
30 | 1 | } |
|
31 | |||
32 | /** @return array<string> */ |
||
33 | 1 | public function uuids(): array |
|
34 | { |
||
35 | 1 | return $this->uuids; |
|
36 | } |
||
37 | |||
38 | 1 | public function dateTime(): DateTimeImmutable |
|
41 | } |
||
42 | |||
43 | 1 | public function sign(Credential $credential): string |
|
47 | } |
||
48 | |||
49 | public function signRetention(Credential $credential): string |
||
55 |