| @@ 47-54 (lines=8) @@ | ||
| 44 | return $parent->methods->get($name, $parentSpec); |
|
| 45 | } |
|
| 46 | } |
|
| 47 | foreach ($this->class->getInterfaces() as $interface) { |
|
| 48 | if ($interface instanceof InterfaceData) { |
|
| 49 | $method = $interface->methods->get($name, $parentSpec); |
|
| 50 | if ($method instanceof MethodData) { |
|
| 51 | return $method; |
|
| 52 | } |
|
| 53 | } |
|
| 54 | } |
|
| 55 | } |
|
| 56 | public function all(Specification $spec = null) { |
|
| 57 | if ($spec === null) { |
|
| @@ 81-86 (lines=6) @@ | ||
| 78 | ); |
|
| 79 | } |
|
| 80 | } |
|
| 81 | foreach ($this->class->getInterfaces() as $interface) { |
|
| 82 | if ($interface instanceof InterfaceData) { |
|
| 83 | $parentM = $interface->methods->all($parentSpec); |
|
| 84 | $methods = array_merge($parentM, $methods); |
|
| 85 | } |
|
| 86 | } |
|
| 87 | return $methods; |
|
| 88 | } |
|
| 89 | } |
|