Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
5 | class Information |
||
6 | { |
||
7 | private string $url; |
||
8 | |||
9 | private string $payload; |
||
10 | |||
11 | private string $message; |
||
12 | |||
13 | 23 | public function __construct(string $url, string $payload, string $message) |
|
14 | { |
||
15 | 23 | $this->url = $url; |
|
16 | 23 | $this->payload = $payload; |
|
17 | 23 | $this->message = \ucfirst($message); |
|
18 | 23 | } |
|
19 | |||
20 | 21 | public function getAsArray(): array |
|
26 | ]; |
||
27 | } |
||
29 |