private function processElement(ReflectionBase $element) { if ($element instanceof ReflectionConstant) { $this->elements[] = ['co', $element->getPrettyName()]; } elseif ($element instanceof ReflectionFunction) { $this->elements[] = ['f', $element->getPrettyName()]; } elseif ($element instanceof ReflectionClass) { $this->elements[] = ['c', $element->getPrettyName()]; } }