| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 2 | public function getMethodAnnotations(\ReflectionMethod $method) |
|
| 19 | { |
||
| 20 | 2 | $annotations = []; |
|
| 21 | |||
| 22 | 2 | foreach (parent::getMethodAnnotations($method) as $i => $annotation) { |
|
| 23 | 2 | if ($annotation instanceof ReflectionValidatorMethodAnnotationInterface) { |
|
| 24 | 2 | $annotation->validate($method); |
|
| 25 | } |
||
| 26 | |||
| 27 | 1 | $annotations[$i] = $annotation; |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | return $annotations; |
|
| 31 | } |
||
| 32 | } |
||
| 33 |