| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 12 | protected function getContractAnnotations(array $annotations) |
|
| 33 | { |
||
| 34 | 12 | $contractAnnotations = []; |
|
| 35 | |||
| 36 | 12 | foreach ($annotations as $annotation) { |
|
| 37 | 12 | if (is_a($annotation, $this->expectedAnnotationType)) { |
|
| 38 | 12 | $contractAnnotations[] = $annotation; |
|
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | 12 | return $contractAnnotations; |
|
| 43 | } |
||
| 44 | } |
||
| 45 |