src/Classes/ClassUtil.php
public function getClassesInNamespace(string $namespace)
    {
        $arrOptions = [];

        foreach (get_declared_classes() as $strName) {
            if ($this->container->get('huh.utils.string')->startsWith($strName, $namespace)) {
                $arrOptions[$strName] = $strName;
            }
        }

        asort($arrOptions);

        return $arrOptions;
    }
public function getClassesInNamespace(string $namespace)
    {
        $arrOptions = [];

        foreach (get_declared_classes() as $strName) {
            if ($this->container->get('huh.utils.string')->startsWith($strName, $namespace)) {
                $arrOptions[$strName] = $strName;
            }
        }

        asort($arrOptions);

        return $arrOptions;
    }
public function getClassesInNamespace ( string $ namespace ) { $ arrOptions = [ ] ; foreach ( get_declared_classes ( ) as $ strName ) { if ( $ this -> container -> get ( 'huh.utils.string' ) -> startsWith ( $ strName , $ namespace ) ) { $ arrOptions [ $ strName ] = $ strName ; } } asort ( $ arrOptions ) ; return $ arrOptions ; }
Returns all classes in the given namespace.

@param string $namespace

@return array
Returns all classes in the given namespace .