Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | final class Envelope |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $title; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $payload; |
||
19 | |||
20 | /** |
||
21 | * @var DateTimeInterface |
||
22 | */ |
||
23 | private $timestamp; |
||
24 | |||
25 | 5 | public function __construct(string $payload, ?string $title = null, ?DateTimeInterface $timestamp = null) |
|
30 | 5 | } |
|
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | 1 | public function getTitle(): string |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | 1 | public function getPayload(): string |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return DateTimeInterface |
||
50 | */ |
||
51 | 1 | public function getTimestamp(): DateTimeInterface |
|
56 |