| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 29 | public function __construct($callable) |
||
| 30 | { |
||
| 31 | if (!\is_callable($callable)) { |
||
| 32 | throw new \InvalidArgumentException('The $callable argument must be a callable.'); |
||
| 33 | } |
||
| 34 | |||
| 35 | if (\is_string($callable) && \strpos($callable, '::')) { |
||
| 36 | $callable = explode('::', $callable); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->callable = $callable; |
||
| 40 | } |
||
| 41 | |||
| 58 |