private function getSubClasses($subClasses)
    {
        $result = [];

        foreach ($subClasses as $subClass) {
            $children = $subClass->getSubClasses(false);
            $entry = [
                'uri' => $subClass->getUri(),
                'label' => $subClass->getLabel()
            ];
            if (count($children) > 0) {
                $entry['children'] = $this->getSubClasses($children);
            }
            array_push($result, $entry);
        }

        return $result;
    }
private function getSubClasses($subClasses)
    {
        $result = [];

        foreach ($subClasses as $subClass) {
            $children = $subClass->getSubClasses(false);
            $entry = [
                'uri' => $subClass->getUri(),
                'label' => $subClass->getLabel()
            ];
            if (count($children) > 0) {
                $entry['children'] = $this->getSubClasses($children);
            }
            array_push($result, $entry);
        }

        return $result;
    }
private function getSubClasses ( $ subClasses ) { $ result = [ ] ; foreach ( $ subClasses as $ subClass ) { $ children = $ subClass -> getSubClasses ( false ) ; $ entry = [ 'uri' => $ subClass -> getUri ( ) , 'label' => $ subClass -> getLabel ( ) ] ; if ( count ( $ children ) > 0 ) { $ entry [ 'children' ] = $ this -> getSubClasses ( $ children ) ; } array_push ( $ result , $ entry ) ; } return $ result ; }
Get the class subclasses
@return array the classes hierarchy
Get the class subclasses