1 | <?php declare(strict_types=1); |
||
5 | class LogMessage |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $message; |
||
11 | |||
12 | /** |
||
13 | * @var bool |
||
14 | */ |
||
15 | private $error; |
||
16 | |||
17 | /** |
||
18 | * @param string $message |
||
19 | * @param bool $error |
||
20 | */ |
||
21 | public function __construct(string $message, bool $error) |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getMessage(): string |
||
34 | |||
35 | /** |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function isError(): bool |
||
42 | } |
||
43 |