Conditions | 4 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
40 | public function __construct(callable $staticMethod) |
||
41 | { |
||
42 | 27 | assert( |
|
43 | is_array($staticMethod) === true && count((array)$staticMethod) === 2 && |
||
44 | is_string($staticMethod[0]) === true && is_string($staticMethod[1]) === true, |
||
45 | 'Only array form of static callable method is supported.' |
||
46 | ); |
||
47 | |||
48 | 27 | $this->staticMethod = $staticMethod; |
|
49 | } |
||
50 | 27 | ||
59 |