| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Logger |
||
| 9 | { |
||
| 10 | use LoggerTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param LoggerInterface $logger |
||
| 14 | */ |
||
| 15 | public function __construct(private LoggerInterface $logger) |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Logs with an arbitrary level. |
||
| 20 | * |
||
| 21 | * @param mixed $level |
||
| 22 | * @param string|\Stringable $message |
||
| 23 | * @param array $context |
||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | public function log($level, string|\Stringable $message, array $context = []) |
||
| 32 |