| @@ 88-95 (lines=8) @@ | ||
| 85 | /** |
|
| 86 | * @return ClassData[] |
|
| 87 | */ |
|
| 88 | public function findClassChildren(FQCN $class) { |
|
| 89 | if (!array_key_exists($class->toString(), $this->extends) |
|
| 90 | || !is_array($this->extends[$class->toString()]) |
|
| 91 | ) { |
|
| 92 | $this->extends[$class->toString()] = []; |
|
| 93 | } |
|
| 94 | return $this->extends[$class->toString()]; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * @return ClassData[] |
|
| @@ 100-107 (lines=8) @@ | ||
| 97 | /** |
|
| 98 | * @return ClassData[] |
|
| 99 | */ |
|
| 100 | public function findInterfaceChildrenClasses(FQCN $interface) { |
|
| 101 | if (!array_key_exists($interface->toString(), $this->implements) |
|
| 102 | || !is_array($this->implements[$interface->toString()]) |
|
| 103 | ) { |
|
| 104 | $this->implements[$interface->toString()] = []; |
|
| 105 | } |
|
| 106 | return $this->implements[$interface->toString()]; |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * @return ClassData[] |
|