Methods

setFullyQualifiedStructuralElementName()

setFullyQualifiedStructuralElementName(string  $name) : void

Sets the Fully Qualified Structural Element Name (FQSEN) for this element.

Parameters

string $name

getFullyQualifiedStructuralElementName()

getFullyQualifiedStructuralElementName() : string

Returns the Fully Qualified Structural Element Name (FQSEN) for this element.

Returns

string

setName()

setName(string  $name) : void

Sets the local name for this element.

Parameters

string $name

getName()

getName() : string

Returns the local name for this element.

Returns

string

setSummary()

setSummary(string  $summary) : void

Sets a summary describing this element.

Parameters

string $summary

getSummary()

getSummary() : string

Returns the summary describing this element.

Returns

string

setDescription()

setDescription(string  $description) : void

Sets a longer description for this element.

Parameters

string $description

getDescription()

getDescription() : string

Returns a longer description for this element.

Returns

string

setLocation()

setLocation(\phpDocumentor\Descriptor\FileDescriptor  $file, integer  $line) : void

Sets the file and location for this element.

Parameters

\phpDocumentor\Descriptor\FileDescriptor $file
integer $line

getPath()

getPath() : string

Returns the file location for this element relative to the project root.

Returns

string

getLine()

getLine() : integer

Returns the line number where this element may be found.

Returns

integer

setTypes()

setTypes(\phpDocumentor\Descriptor\Collection  $types) : void

Sets a normalized list of types that the argument represents.

Arguments should have one of the types mentioned in this array. If this array is empty than that is considered to be the type mixed (meaning: can be anything).

Any Type representing a class/interface/trait should be normalized to its complete FQCN, including preceding backslash. Types that do not represent a class/interface/trait should be written in lowercaps and should not be preceded by a backslash.

Parameters

\phpDocumentor\Descriptor\Collection $types

An Collection of normalized types that should be in this Argument

setDefault()

setDefault(string  $value) : void

Sets the default value for an argument expressed as a string.

Parameters

string $value

A textual representation of the default value.

getDefault()

getDefault() : string|null

Returns the default value for an argument as string or null is no default is set.

Returns

string|null —

A textual representation of the default value, or null if no default value is present.

setByReference()

setByReference(boolean  $byReference) : void

Sets whether this argument passes its parameter by reference or by value.

Parameters

boolean $byReference

True if the parameter is passed by reference, otherwise it is by value.

isByReference()

isByReference() : boolean

Returns whether the parameter is passed by reference or by value.

Returns

boolean —

True if the parameter is passed by reference, otherwise it is by value.