Namespace_
in package
implements
Element, MetaDataContainer
Uses
MetadataContainer
Represents a namespace and its children for a project.
Interfaces, Classes and Traits
- Element
- Interface for Api Elements
- MetaDataContainer
Table of Contents
- $classes : array<string|int, mixed>
- $constants : array<string|int, mixed>
- $fqsen : Fqsen
- $functions : array<string|int, mixed>
- $interfaces : array<string|int, mixed>
- $traits : array<string|int, mixed>
- __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, mixed>
$classes
= []
fqsen of all classes in this namespace
$constants
private
array<string|int, mixed>
$constants
= []
fqsen of all constants in this namespace
$fqsen
private
Fqsen
$fqsen
Full Qualified Structural Element Name
$functions
private
array<string|int, mixed>
$functions
= []
fqsen of all functions in this namespace
$interfaces
private
array<string|int, mixed>
$interfaces
= []
fqsen of all interfaces in this namespace
$traits
private
array<string|int, mixed>
$traits
= []
fqsen of all traits in this namespace
Methods
__construct()
Initializes the namespace.
public
__construct(Fqsen $fqsen) : mixed
Parameters
- $fqsen : Fqsen
Return values
mixed —addClass()
Add a class to this namespace.
public
addClass(Fqsen $class) : void
Parameters
- $class : Fqsen
Return values
void —addConstant()
Add a Constant to this Namespace.
public
addConstant(Fqsen $contant) : void
Parameters
- $contant : Fqsen
Return values
void —addFunction()
Add a function to this namespace.
public
addFunction(Fqsen $function) : void
Parameters
- $function : Fqsen
Return values
void —addInterface()
Add an interface the this namespace.
public
addInterface(Fqsen $interface) : void
Parameters
- $interface : Fqsen
Return values
void —addTrait()
Add a trait to this namespace.
public
addTrait(Fqsen $trait) : void
Parameters
- $trait : Fqsen
Return values
void —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
Return values
Fqsen —getFunctions()
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
Return values
string —getTraits()
Returns a list of all traits in this namespace.
public
getTraits() : array<string|int, Fqsen>