| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class LoggerInjector implements InjectorInterface |
||
| 18 | { |
||
| 19 | public const DEFAULT_CHANNEL = 'default'; |
||
| 20 | |||
| 21 | public function __construct( |
||
| 22 | private readonly LogsInterface $factory, |
||
| 23 | ) { |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param \ReflectionParameter|string|null $context may use extended context if possible. |
||
| 28 | */ |
||
| 29 | public function createInjection( |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return non-empty-string|null |
||
| 45 | */ |
||
| 46 | private function extractChannelAttribute(\ReflectionParameter $parameter): ?string |
||
| 54 |