| @@ 87-95 (lines=9) @@ | ||
| 84 | /** |
|
| 85 | * @return ClassData |
|
| 86 | */ |
|
| 87 | public function findClassByFQCN(FQCN $fqcn) { |
|
| 88 | $str = $fqcn->toString(); |
|
| 89 | if (array_key_exists($str, $this->classes)) { |
|
| 90 | return $this->classes[$str]; |
|
| 91 | } |
|
| 92 | if ($this->hasCoreIndex()) { |
|
| 93 | return self::$coreIndex->findClassByFQCN($fqcn); |
|
| 94 | } |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * @return InterfaceData |
|
| @@ 100-108 (lines=9) @@ | ||
| 97 | /** |
|
| 98 | * @return InterfaceData |
|
| 99 | */ |
|
| 100 | public function findInterfaceByFQCN(FQCN $fqcn) { |
|
| 101 | $str = $fqcn->toString(); |
|
| 102 | if (array_key_exists($str, $this->interfaces)) { |
|
| 103 | return $this->interfaces[$str]; |
|
| 104 | } |
|
| 105 | if ($this->hasCoreIndex()) { |
|
| 106 | return self::$coreIndex->findInterfaceByFQCN($fqcn); |
|
| 107 | } |
|
| 108 | } |
|
| 109 | ||
| 110 | /** |
|
| 111 | * @return FunctionData |
|