Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3.0261 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 5 | public function __construct($handler, Lolifier $lolifier, $bubble = true) |
|
19 | { |
||
20 | 5 | $this->handler = $handler; |
|
21 | 5 | $this->lolifier = $lolifier; |
|
22 | 5 | $this->bubble = $bubble; |
|
23 | |||
24 | 5 | if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) { |
|
25 | throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable nor a Monolog\Handler\HandlerInterface object"); |
||
26 | } |
||
27 | 5 | } |
|
28 | |||
56 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.