Свойство | Тип | Описание | |
---|---|---|---|
$aliases | a list of imported namespaces | ||
$namespace | string | null | Current namespace, but this can be null |
Метод | Описание | |
---|---|---|
__construct ( string | null $namespace = null ) | ||
add ( string $namespace ) | Imports a namespace as an alias via use statement. | |
getNamespace ( ) : null | string | Gets the current namespace. | |
isClassImported ( string $classNS ) : boolean | Checks whether a namespace was imported via use statement. | |
setNamespace ( null | string $namespace ) | Sets the current namespace. |
public __construct ( string | null $namespace = null ) | ||
$namespace | string | null |
public getNamespace ( ) : null | string | ||
Результат | null | string |
public isClassImported ( string $classNS ) : boolean | ||
$classNS | string | |
Результат | boolean |
public setNamespace ( null | string $namespace ) | ||
$namespace | null | string |