Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function check(BaseStatus $status) |
||
18 | { |
||
19 | $reflector = new \ReflectionClass($this->class); |
||
20 | $constructor = $reflector->getConstructor(); |
||
21 | |||
22 | if (is_null($constructor)) { |
||
23 | $status->setFailedWith(HasConstructor::class); |
||
24 | $status->setStatus(false); |
||
25 | |||
26 | return $status; |
||
27 | } |
||
28 | |||
29 | return $this->next($status); |
||
30 | } |
||
32 |