ApiGen\Parser\Elements\AutocompleteElements::processElement PHP Метод

processElement() приватный метод

private processElement ( ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface $element )
$element ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface
    private function processElement(ElementReflectionInterface $element)
    {
        if ($element instanceof ConstantReflectionInterface) {
            $this->elements[] = ['co', $element->getPrettyName()];
        } elseif ($element instanceof FunctionReflectionInterface) {
            $this->elements[] = ['f', $element->getPrettyName()];
        } elseif ($element instanceof ClassReflectionInterface) {
            $this->elements[] = ['c', $element->getPrettyName()];
            foreach ($element->getOwnMethods() as $method) {
                $this->elements[] = ['m', $method->getPrettyName()];
            }
            foreach ($element->getOwnProperties() as $property) {
                $this->elements[] = ['p', $property->getPrettyName()];
            }
        }
    }