| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 1 | public function setLogger(LoggerInterface $logger): self |
|
| 34 | { |
||
| 35 | 1 | $this->logger = $logger; |
|
| 36 | |||
| 37 | // What are we logging with? |
||
| 38 | 1 | $this->logger->debug(\sprintf( |
|
| 39 | 1 | 'Class `%s` configured to use `%s`.', |
|
| 40 | 1 | Types::getClassOrType($this), |
|
| 41 | 1 | Types::getClassOrType($this->logger) |
|
| 42 | )); |
||
| 43 | |||
| 44 | 1 | return $this; |
|
| 45 | } |
||
| 55 |