Свойство | Type | Description | |
---|---|---|---|
$aliases | a list of imported namespaces | ||
$namespace | string | null | Current namespace, but this can be null |
Méthode | Description | |
---|---|---|
__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 | ||
Résultat | null | string |
public isClassImported ( string $classNS ) : boolean | ||
$classNS | string | |
Résultat | boolean |
public setNamespace ( null | string $namespace ) | ||
$namespace | null | string |