Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class Envelope |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $title; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $payload; |
||
18 | |||
19 | /** |
||
20 | * @var DateTime |
||
21 | */ |
||
22 | private $timestamp; |
||
23 | |||
24 | 34 | public function __construct(string $payload, ?string $title = null, ?DateTime $timestamp = null) |
|
29 | 34 | } |
|
30 | |||
31 | 2 | public function getTitle(): string |
|
34 | } |
||
35 | |||
36 | 2 | public function getPayload(): string |
|
39 | } |
||
40 | |||
41 | 2 | public function getTimestamp(): DateTime |
|
46 |