ApiGen\Parser\Reflection\Extractors\ParentClassElementsExtractor::getInheritedConstants PHP Method

getInheritedConstants() public method

    public function getInheritedConstants()
    {
        return array_filter(array_map(function (ReflectionClass $class) {
            $reflections = $class->getOwnConstants();
            ksort($reflections);
            return $reflections;
        }, $this->getParentClassesAndInterfaces()));
    }