ApiGen\Parser\ParserStorage::getElementsByType PHP Method

getElementsByType() public method

public getElementsByType ( $type )
    public function getElementsByType($type)
    {
        if ($type === ElementsInterface::CLASSES) {
            return $this->classes;
        } elseif ($type === ElementsInterface::CONSTANTS) {
            return $this->constants;
        } elseif ($type === ElementsInterface::FUNCTIONS) {
            return $this->functions;
        }
        throw new \Exception(sprintf('"%s" is not supported element type', $type));
    }