src/Generator/CodeGenerator.php
private static function isAliased($name, array $imports): bool
    {
        $aliases = array_keys($imports);
        foreach ($aliases as $alias) {
            if (strpos($name, $alias) === 0) {
                return true;
            }
        }

        return false;
    }
private static function isAliased($name, array $imports): bool
    {
        $aliases = array_keys($imports);
        foreach ($aliases as $alias) {
            if (strpos($name, $alias) === 0) {
                return true;
            }
        }

        return false;
    }
private static function isAliased ( $ name , array $ imports ) : bool { $ aliases = array_keys ( $ imports ) ; foreach ( $ aliases as $ alias ) { if ( strpos ( $ name , $ alias ) === 0 ) { return true ; } } return false ; }
Returns true if the given class name is in an aliased namespace, false
otherwise.

@param string   $name
@param string[] $imports
@return bool
Returns true if the given class name is in an aliased namespace false otherwise .