1 | <?php |
||
7 | class ClassAnalyzer |
||
8 | { |
||
9 | /** |
||
10 | * @param string $class |
||
11 | * |
||
12 | * @return bool Return TRUE if class don't have constructor (or without required parameter) and if class is not abstract, FALSE else |
||
13 | */ |
||
14 | public function canBeConstructed($class) |
||
32 | |||
33 | /** |
||
34 | * @param string|ReflectionClass $class |
||
35 | * |
||
36 | * @return ReflectionClass |
||
|
|||
37 | */ |
||
38 | private function buildReflection($class) |
||
50 | } |
||
51 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.