Conditions | 5 |
Paths | 6 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
58 | public function getCurrentClassMethods($callback = null) |
||
59 | { |
||
60 | $callback = null === $callback ? function() { |
||
61 | return true; |
||
62 | } : $callback; |
||
63 | $currentClass = $this->__reflector->getName(); |
||
64 | $methods = $this->__reflector->getMethods(); |
||
65 | $result = []; |
||
66 | foreach ($methods as $method) { |
||
67 | if ($currentClass === $method->class && $callback($method->name)) { |
||
68 | $result[] = $method; |
||
69 | } |
||
70 | } |
||
71 | return $result; |
||
72 | } |
||
74 |