Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function check(BaseStatus $status) |
||
18 | { |
||
19 | $reflector = new \ReflectionClass($this->class); |
||
20 | |||
21 | if (!$reflector->isInstantiable()) { |
||
22 | $status->setFailedWith(IsInstantiable::class); |
||
23 | $status->setStatus(false); |
||
24 | |||
25 | return $status; |
||
26 | } |
||
27 | |||
28 | return $this->next($status); |
||
29 | } |
||
31 |