| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function __invoke(object $command, callable $next): void |
||
| 17 | { |
||
| 18 | if ($command instanceof Interfaces\LoggableCommand) { |
||
| 19 | $this->getLogger()->log( |
||
| 20 | (string) ($command->getLogLevel() ?? Enums\LogLevel::INFO()), |
||
| 21 | $command->getLogMessage(), |
||
| 22 | $command->getLogContext() |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | $next($command); |
||
| 27 | } |
||
| 29 |