| Conditions | 5 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 24 | public function getMethods($annotations = array()) |
|
| 35 | { |
||
| 36 | $methods = array_filter($this->methods, function ($m) use ($annotations) { |
||
| 37 | 24 | foreach ($annotations as $a => $v) { |
|
| 38 | 3 | foreach (explode(',', $v) as $subValue) { |
|
| 39 | 3 | if ($m->hasAnnotation($a, $subValue)) { |
|
| 40 | 3 | return true; |
|
| 41 | } |
||
| 42 | 3 | } |
|
| 43 | 24 | } |
|
| 44 | 24 | return false; |
|
| 45 | 24 | }); |
|
| 46 | 24 | return $methods ? $methods : $this->methods; |
|
| 47 | } |
||
| 48 | |||
| 59 |