| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | trait HasLoggerTrait |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Quick method to check if a logger has been passed if not it will return a PSR NullLogger |
||
| 24 | * @param LoggerInterface|null $logger |
||
| 25 | * |
||
| 26 | * @return LoggerInterface |
||
| 27 | */ |
||
| 28 | protected function hasLogger(LoggerInterface $logger = null): LoggerInterface |
||
| 36 |