Documentation

Trait_
in package
implements Element, MetaDataContainer Uses MetadataContainer

Descriptor representing a Trait.

Interfaces, Classes and Traits

Element
Interface for Api Elements
MetaDataContainer

Table of Contents

$constants  : array<string|int, mixed>
$docBlock  : DocBlock|null
$endLocation  : Location
$fqsen  : Fqsen
$location  : Location
$methods  : array<string|int, mixed>
$properties  : array<string|int, mixed>
$usedTraits  : array<string|int, mixed>
__construct()  : mixed
Initializes the all properties
addConstant()  : void
Add Constant to this class.
addMethod()  : void
Add a method to this Trait
addProperty()  : void
Add a property to this Trait.
addUsedTrait()  : void
Add reference to trait used by this trait.
getConstants()  : array<string|int, Constant>
Returns the constants of this class.
getDocBlock()  : DocBlock|null
getEndLocation()  : Location
getFqsen()  : Fqsen
Returns the Fqsen of the element.
getLocation()  : Location
getMethods()  : array<string|int, Method>
Returns the methods of this Trait.
getName()  : string
Returns the name of the element.
getProperties()  : array<string|int, Property>
Returns the properties of this trait.
getUsedTraits()  : array<string|int, Fqsen>
Returns fqsen of all traits used by this trait.

Properties

$constants

private array<string|int, mixed> $constants = []

$fqsen

private Fqsen $fqsen

Full Qualified Structural Element Name

$methods

private array<string|int, mixed> $methods = []

$properties

private array<string|int, mixed> $properties = []

$usedTraits

private array<string|int, mixed> $usedTraits = []

References to traits consumed by this trait

Methods

__construct()

Initializes the all properties

public __construct(Fqsen $fqsen[, DocBlock|null $docBlock = null ][, Location|null $location = null ][, Location|null $endLocation = null ]) : mixed
Parameters
$fqsen : Fqsen
$docBlock : DocBlock|null = null
$location : Location|null = null
$endLocation : Location|null = null
Return values
mixed

addConstant()

Add Constant to this class.

public addConstant(Constant $constant) : void
Parameters
$constant : Constant
Return values
void

addMethod()

Add a method to this Trait

public addMethod(Method $method) : void
Parameters
$method : Method
Return values
void

addProperty()

Add a property to this Trait.

public addProperty(Property $property) : void
Parameters
$property : Property
Return values
void

addUsedTrait()

Add reference to trait used by this trait.

public addUsedTrait(Fqsen $fqsen) : void
Parameters
$fqsen : Fqsen
Return values
void

getConstants()

Returns the constants of this class.

public getConstants() : array<string|int, Constant>
Return values
array<string|int, Constant>

getFqsen()

Returns the Fqsen of the element.

public getFqsen() : Fqsen
Return values
Fqsen

getMethods()

Returns the methods of this Trait.

public getMethods() : array<string|int, Method>
Return values
array<string|int, Method>

getName()

Returns the name of the element.

public getName() : string
Return values
string

getProperties()

Returns the properties of this trait.

public getProperties() : array<string|int, Property>
Return values
array<string|int, Property>

getUsedTraits()

Returns fqsen of all traits used by this trait.

public getUsedTraits() : array<string|int, Fqsen>
Return values
array<string|int, Fqsen>

Search results