| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function get($name) |
||
| 36 | { |
||
| 37 | if (!is_string($name)) { |
||
| 38 | throw new \InvalidArgumentException('The argument of get method must be string'); |
||
| 39 | } |
||
| 40 | |||
| 41 | if (!$this->has($name)) { |
||
| 42 | $message = sprintf('Logger %s is not defined', $name); |
||
| 43 | throw new \OutOfBoundsException($message); |
||
| 44 | } |
||
| 45 | |||
| 46 | return $this->loggers[$name]; |
||
| 47 | } |
||
| 48 | |||
| 54 |