| @@ 126-133 (lines=8) @@ | ||
| 123 | /** |
|
| 124 | * @return ClassData[] |
|
| 125 | */ |
|
| 126 | public function findClassChildren(FQCN $class) { |
|
| 127 | if (!array_key_exists($class->toString(), $this->extends) |
|
| 128 | || !is_array($this->extends[$class->toString()]) |
|
| 129 | ) { |
|
| 130 | $this->extends[$class->toString()] = []; |
|
| 131 | } |
|
| 132 | return $this->extends[$class->toString()]; |
|
| 133 | } |
|
| 134 | ||
| 135 | /** |
|
| 136 | * @return ClassData[] |
|
| @@ 138-145 (lines=8) @@ | ||
| 135 | /** |
|
| 136 | * @return ClassData[] |
|
| 137 | */ |
|
| 138 | public function findInterfaceChildrenClasses(FQCN $interface) { |
|
| 139 | if (!array_key_exists($interface->toString(), $this->implements) |
|
| 140 | || !is_array($this->implements[$interface->toString()]) |
|
| 141 | ) { |
|
| 142 | $this->implements[$interface->toString()] = []; |
|
| 143 | } |
|
| 144 | return $this->implements[$interface->toString()]; |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * @return ClassData[] |
|