Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class CancelSigner |
||
13 | { |
||
14 | /** @var array */ |
||
15 | private $uuids; |
||
16 | |||
17 | /** @var DateTimeImmutable */ |
||
18 | private $dateTime; |
||
19 | |||
20 | /** |
||
21 | * CancelSigner constructor |
||
22 | * |
||
23 | * @param array $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) |
|
27 | { |
||
28 | 1 | $this->uuids = $uuid; |
|
29 | 1 | $this->dateTime = $dateTime ?? new DateTimeImmutable(); |
|
30 | 1 | } |
|
31 | |||
32 | 1 | public function uuids(): array |
|
33 | { |
||
34 | 1 | return $this->uuids; |
|
35 | } |
||
36 | |||
37 | 1 | public function dateTime(): DateTimeImmutable |
|
40 | } |
||
41 | |||
42 | 1 | public function sign(Credential $credential): string |
|
46 | } |
||
47 | } |
||
48 |