| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class LogCommand extends AbstractStandardCommand |
||
| 10 | { |
||
| 11 | public const TYPE = 'Log'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param LogLevel $level Log level for the message |
||
| 15 | * @param string|null $message Message to log |
||
| 16 | * @param array|null $arguments Optional map of key-value pairs for data-binding |
||
| 17 | */ |
||
| 18 | 8 | public function __construct( |
|
| 19 | public LogLevel $level = LogLevel::INFO, |
||
| 20 | public ?string $message = null, |
||
| 21 | public ?array $arguments = null, |
||
| 22 | ) { |
||
| 23 | 8 | parent::__construct(self::TYPE); |
|
| 24 | } |
||
| 25 | |||
| 26 | 4 | public function jsonSerialize(): array |
|
| 41 | } |
||
| 42 | } |
||
| 43 |