| 1 | <?php declare(strict_types=1); |
||
| 5 | class LogMessage |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | private $message; |
||
| 12 | /** |
||
| 13 | * @var bool |
||
| 14 | */ |
||
| 15 | private $error; |
||
| 16 | |||
| 17 | public function __construct(string $message, bool $error) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function getMessage(): string |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | public function isError(): bool |
||
| 38 | } |
||
| 39 |