Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class TestAuthToken implements TokenInterface |
||
17 | { |
||
18 | /** @var string */ |
||
19 | private $id; |
||
20 | |||
21 | /** @var \DateTimeInterface|null */ |
||
22 | private $expiresAt; |
||
23 | |||
24 | /** @var array */ |
||
25 | private $payload; |
||
26 | |||
27 | /** |
||
28 | * @param string $id |
||
29 | * @param array $payload |
||
30 | * @param \DateTimeInterface|null $expiresAt |
||
31 | */ |
||
32 | public function __construct(string $id, array $payload, \DateTimeInterface $expiresAt = null) |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function getID(): string |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | public function getExpiresAt(): ?\DateTimeInterface |
||
51 | { |
||
52 | return $this->expiresAt; |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | */ |
||
58 | public function getPayload(): array |
||
61 | } |
||
62 | } |
||
63 |