| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class PsrTarget extends Target |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Sets the PSR-3 logger used to save messages of this target. |
||
| 16 | * |
||
| 17 | * @param LoggerInterface $logger The logger instance to be used for messages processing. |
||
| 18 | */ |
||
| 19 | 8 | public function __construct(private LoggerInterface $logger) |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return LoggerInterface The logger instance. |
||
| 26 | */ |
||
| 27 | 8 | public function getLogger(): LoggerInterface |
|
| 30 | } |
||
| 31 | |||
| 32 | 8 | protected function export(): void |
|
| 41 |