Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | 8 | public function getConditions(ReflectionClass $class) |
|
25 | { |
||
26 | 8 | $annotations = []; |
|
27 | 8 | $parents = []; |
|
28 | |||
29 | 8 | $this->getParentClasses($class, $parents); |
|
30 | 8 | $this->getInterfaces($class, $parents); |
|
31 | |||
32 | 8 | foreach ($parents as $parent) { |
|
33 | 6 | $annotations = array_merge($annotations, $this->annotationReader->getClassAnnotations($parent)); |
|
34 | } |
||
35 | 8 | $contracts = $this->filterContractAnnotation($annotations); |
|
36 | |||
37 | 8 | return $contracts; |
|
38 | } |
||
39 | |||
64 |