Conditions | 3 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
25 | 4 | public function __construct($payload, ?string $title = null, ?DateTimeInterface $timestamp = null) |
|
26 | { |
||
27 | 4 | $this->payload = $payload; |
|
28 | 4 | $this->title = $title ?: bin2hex(random_bytes(7)); |
|
29 | 4 | $this->timestamp = $timestamp ?: new DateTimeImmutable(); |
|
30 | 4 | } |
|
56 |