| Conditions | 4 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | public function __construct($logger = null) |
||
| 18 | { |
||
| 19 | if (!$logger instanceof LoggerInterface && null !== $logger) { |
||
| 20 | throw new InvalidArgumentException(sprintf('SludioLogger needs PSR-3 LoggerInterface, "%s" was injected instead.', is_object($logger) ? get_class($logger) : gettype($logger))); |
||
| 21 | } |
||
| 22 | |||
| 23 | $this->logger = $logger; |
||
| 24 | } |
||
| 42 | } |