public function getAllSubClassNamesForClass($className)
    {
        if (!$this->initialized) {
            $this->initialize();
        }
        $className = $this->cleanClassName($className);

        if (class_exists($className) === false) {
            throw new \InvalidArgumentException('"' . $className . '" does not exist or is not the name of a class.', 1257168042);
        }
        $this->loadOrReflectClassIfNecessary($className);

        return (isset($this->classReflectionData[$className][self::DATA_CLASS_SUBCLASSES])) ? array_keys($this->classReflectionData[$className][self::DATA_CLASS_SUBCLASSES]) : [];
    }
public function getAllSubClassNamesForClass($className)
    {
        if (!$this->initialized) {
            $this->initialize();
        }
        $className = $this->cleanClassName($className);

        if (class_exists($className) === false) {
            throw new \InvalidArgumentException('"' . $className . '" does not exist or is not the name of a class.', 1257168042);
        }
        $this->loadOrReflectClassIfNecessary($className);

        return (isset($this->classReflectionData[$className][self::DATA_CLASS_SUBCLASSES])) ? array_keys($this->classReflectionData[$className][self::DATA_CLASS_SUBCLASSES]) : [];
    }
public function getAllSubClassNamesForClass ( $ className ) { if ( ! $ this -> initialized ) { $ this -> initialize ( ) ; } $ className = $ this -> cleanClassName ( $ className ) ; if ( class_exists ( $ className ) === false ) { throw new \ InvalidArgumentException ( '"' . $ className . '" does not exist or is not the name of a class.' , 1257168042 ) ; } $ this -> loadOrReflectClassIfNecessary ( $ className ) ; return ( isset ( $ this -> classReflectionData [ $ className ] [ self :: DATA_CLASS_SUBCLASSES ] ) ) ? array_keys ( $ this -> classReflectionData [ $ className ] [ self :: DATA_CLASS_SUBCLASSES ] ) : [ ] ; }
Searches for and returns all names of classes inheriting the specified class.
If no class inheriting the given class was found, an empty array is returned.

@param string $className Name of the parent class
@return array An array of names of those classes being a direct or indirect subclass of the specified class
@throws \InvalidArgumentException if the given class does not exist
@api
Searches for and returns all names of classes inheriting the specified class . If no class inheriting the given class was found an empty array is returned .