Namespace_
in package
implements
Element, MetaDataContainer
uses
MetadataContainer
Represents a namespace and its children for a project.
Table of Contents
Interfaces
- Element
- MetaDataContainer
Properties
- $classes : array<string|int, Fqsen>
- $constants : array<string|int, Fqsen>
- $fqsen : Fqsen
- $functions : array<string|int, Fqsen>
- $interfaces : array<string|int, Fqsen>
- $traits : array<string|int, Fqsen>
Methods
- __construct() : mixed
- Initializes the namespace.
- addClass() : void
- Add a class to this namespace.
- addConstant() : void
- Add a Constant to this Namespace.
- addFunction() : void
- Add a function to this namespace.
- addInterface() : void
- Add an interface the this namespace.
- addTrait() : void
- Add a trait to this namespace.
- getClasses() : array<string|int, Fqsen>
- Returns a list of all fqsen of classes in this namespace.
- getConstants() : array<string|int, Fqsen>
- Returns a list of all constants in this namespace.
- getFqsen() : Fqsen
- Returns the Fqsen of the element.
- getFunctions() : array<string|int, Fqsen>
- Returns a list of all functions in this namespace.
- getInterfaces() : array<string|int, Fqsen>
- Returns a list of all interfaces in this namespace.
- getName() : string
- Returns the name of the element.
- getTraits() : array<string|int, Fqsen>
- Returns a list of all traits in this namespace.
Properties
$classes
private
array<string|int, Fqsen>
$classes
= []
fqsen of all classes in this namespace
$constants
private
array<string|int, Fqsen>
$constants
= []
fqsen of all constants in this namespace
$fqsen read-only
private
Fqsen
$fqsen
Full Qualified Structural Element Name
$functions
private
array<string|int, Fqsen>
$functions
= []
fqsen of all functions in this namespace
$interfaces
private
array<string|int, Fqsen>
$interfaces
= []
fqsen of all interfaces in this namespace
$traits
private
array<string|int, Fqsen>
$traits
= []
fqsen of all traits in this namespace
Methods
__construct()
Initializes the namespace.
public
__construct(Fqsen $fqsen) : mixed
Parameters
- $fqsen : Fqsen
addClass()
Add a class to this namespace.
public
addClass(Fqsen $class) : void
Parameters
- $class : Fqsen
addConstant()
Add a Constant to this Namespace.
public
addConstant(Fqsen $contant) : void
Parameters
- $contant : Fqsen
addFunction()
Add a function to this namespace.
public
addFunction(Fqsen $function) : void
Parameters
- $function : Fqsen
addInterface()
Add an interface the this namespace.
public
addInterface(Fqsen $interface) : void
Parameters
- $interface : Fqsen
addTrait()
Add a trait to this namespace.
public
addTrait(Fqsen $trait) : void
Parameters
- $trait : Fqsen
getClasses()
Returns a list of all fqsen of classes in this namespace.
public
getClasses() : array<string|int, Fqsen>
Return values
array<string|int, Fqsen>getConstants()
Returns a list of all constants in this namespace.
public
getConstants() : array<string|int, Fqsen>
Return values
array<string|int, Fqsen>getFqsen()
Returns the Fqsen of the element.
public
getFqsen() : Fqsen
Attributes
- #[Override]
Return values
FqsengetFunctions()
Returns a list of all functions in this namespace.
public
getFunctions() : array<string|int, Fqsen>
Return values
array<string|int, Fqsen>getInterfaces()
Returns a list of all interfaces in this namespace.
public
getInterfaces() : array<string|int, Fqsen>
Return values
array<string|int, Fqsen>getName()
Returns the name of the element.
public
getName() : string
Attributes
- #[Override]
Return values
stringgetTraits()
Returns a list of all traits in this namespace.
public
getTraits() : array<string|int, Fqsen>