Documentation

NamespaceCollection
in package

Table of Contents

Properties

$classes  : array<string, Writable>
$namespace  : string
$subnamespaces  : array<string, NamespaceCollection>

Methods

__construct()  : mixed
addClass()  : void
containsNamespace()  : bool
getClass()  : Writable|null
getClasses()  : array<string|int, Writable>
getNamespace()  : string
getNamespaceCollection()  : NamespaceCollection
getSubnamespaces()  : array<string, NamespaceCollection>
getSubnamespaceParts()  : array<string|int, string>

Properties

Methods

__construct()

public __construct(string $namespace) : mixed
Parameters
$namespace : string

containsNamespace()

public containsNamespace(string $namespace) : bool
Parameters
$namespace : string
Return values
bool

getClasses()

public getClasses([bool $recursive = false ]) : array<string|int, Writable>
Parameters
$recursive : bool = false
Return values
array<string|int, Writable>

getSubnamespaceParts()

private getSubnamespaceParts(string $type) : array<string|int, string>
Parameters
$type : string
Return values
array<string|int, string>

        
On this page

Search results