\phpDocumentor\Descriptor\InterfacesArgumentInterface

Describes the public interface for a descriptor of an Argument.

Summary

Methods
Constants
setFullyQualifiedStructuralElementName()
getFullyQualifiedStructuralElementName()
setName()
getName()
setSummary()
getSummary()
setDescription()
getDescription()
setLocation()
getPath()
getLine()
getTags()
setType()
getType()
setDefault()
getDefault()
setByReference()
isByReference()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setFullyQualifiedStructuralElementName()

setFullyQualifiedStructuralElementName(\phpDocumentor\Reflection\Fqsen  $name) : void

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

Parameters

\phpDocumentor\Reflection\Fqsen $name

getFullyQualifiedStructuralElementName()

getFullyQualifiedStructuralElementName() : ?\phpDocumentor\Reflection\Fqsen

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

Returns

?\phpDocumentor\Reflection\Fqsen —

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(\phpDocumentor\Descriptor\DocBlock\DescriptionDescriptor  $description) : void

Sets a longer description for this element.

Parameters

\phpDocumentor\Descriptor\DocBlock\DescriptionDescriptor $description

getDescription()

getDescription() : ?\phpDocumentor\Descriptor\DocBlock\DescriptionDescriptor

Returns a longer description for this element.

Returns

?\phpDocumentor\Descriptor\DocBlock\DescriptionDescriptor —

setLocation()

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

Sets the file and location for this element.

Parameters

\phpDocumentor\Descriptor\FileDescriptor $file
int $line

getPath()

getPath() : string

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

Returns

string —

getLine()

getLine() : int

Returns the line number where this element may be found.

Returns

int —

getTags()

getTags() : \phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\TagDescriptor>>

Returns all tags associated with this element.

Returns

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\TagDescriptor>> —

setType()

setType(?\phpDocumentor\Reflection\Type  $type) : 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\Reflection\Type $type

Type of this agument represented as a reflection type.

getType()

getType() : ?\phpDocumentor\Reflection\Type

Returns a normalized Types.

Returns

?\phpDocumentor\Reflection\Type —

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 if no default is set.

Returns

string|null —

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

setByReference()

setByReference(bool  $byReference) : void

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

Parameters

bool $byReference

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

isByReference()

isByReference() : bool

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

Returns

bool —

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