| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 2 | public function __construct(ContainerInterface $container, $callback) |
|
| 26 | { |
||
| 27 | 2 | parent::__construct($container); |
|
| 28 | 2 | if (is_callable($callback)) { |
|
| 29 | 1 | $this->callback = $callback; |
|
| 30 | 1 | } else { |
|
| 31 | 1 | throw new \InvalidArgumentException('The callback provided was not callable.'); |
|
| 32 | } |
||
| 33 | 1 | } |
|
| 34 | |||
| 44 |