| Conditions | 5 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function getMethods(array $annotations = []): array |
||
| 39 | { |
||
| 40 | 24 | $methods = array_filter($this->methods, function (ParsedFunction $method) use ($annotations): bool { |
|
| 41 | 24 | foreach ($annotations as $a => $v) { |
|
| 42 | 3 | foreach (explode(',', $v) as $subValue) { |
|
| 43 | 3 | if ($method->hasAnnotation($a, $subValue)) { |
|
| 44 | 3 | return true; |
|
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | 24 | return false; |
|
| 50 | 24 | }); |
|
| 51 | |||
| 52 | 24 | return $methods ? $methods : $this->methods; |
|
| 53 | } |
||
| 54 | |||
| 65 |