Methods

getNamespace()

getNamespace() : \phpDocumentor\Descriptor\Interfaces\NamespaceInterface|string

Returns the namespace for this element (defaults to global "\")

Returns

\phpDocumentor\Descriptor\Interfaces\NamespaceInterface|string —

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 —

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 —

setLocation()

setLocation(\phpDocumentor\Descriptor\Interfaces\FileInterface  $file, \phpDocumentor\Reflection\Location  $startLocation) : void

Sets the file and location for this element.

Parameters

\phpDocumentor\Descriptor\Interfaces\FileInterface $file
\phpDocumentor\Reflection\Location $startLocation

getEndLocation()

getEndLocation() : ?\phpDocumentor\Reflection\Location

Returns the end location where the definition for this element can be found.

Returns

?\phpDocumentor\Reflection\Location —

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>> —

getPackage()

getPackage() : ?\phpDocumentor\Descriptor\Interfaces\PackageInterface

Returns the package name for this element.

Returns

?\phpDocumentor\Descriptor\Interfaces\PackageInterface —

getName()

getName() : string

Returns the local name for this element.

Returns

string —

setName()

setName(string  $name) : void

Sets the local name for this element.

Parameters

string $name

getDescription()

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

Returns the description for this element.

This method will automatically attempt to inherit the parent's description if this one has none.

Returns

\phpDocumentor\Descriptor\DocBlock\DescriptionDescriptor —

setDescription()

setDescription(\phpDocumentor\Descriptor\DocBlock\DescriptionDescriptor  $description) : void

Sets a longer description for this element.

Parameters

\phpDocumentor\Descriptor\DocBlock\DescriptionDescriptor $description

getErrors()

getErrors() : \phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Validation\Error>

Returns

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Validation\Error> —

getParent()

getParent() : \phpDocumentor\Descriptor\Interfaces\ElementInterface|\phpDocumentor\Reflection\Fqsen|string|null

Returns the parent for this descriptor.

Returns

\phpDocumentor\Descriptor\Interfaces\ElementInterface|\phpDocumentor\Reflection\Fqsen|string|null —

setParent()

setParent(\phpDocumentor\Descriptor\Interfaces\ElementInterface|\phpDocumentor\Reflection\Fqsen|string|null  $parent) : void

Sets the parent for this Descriptor.

Parameters

\phpDocumentor\Descriptor\Interfaces\ElementInterface|\phpDocumentor\Reflection\Fqsen|string|null $parent

__toString()

__toString() : string

Returns

string —

setInterfaces()

setInterfaces(\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\InterfaceInterface|\phpDocumentor\Reflection\Fqsen>  $implements) : void

Parameters

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\InterfaceInterface|\phpDocumentor\Reflection\Fqsen> $implements

getInterfaces()

getInterfaces() : \phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\InterfaceInterface|\phpDocumentor\Reflection\Fqsen>

Returns

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\InterfaceInterface|\phpDocumentor\Reflection\Fqsen> —

setFinal()

setFinal(bool  $final) : void

Parameters

bool $final

isFinal()

isFinal() : bool

Returns

bool —

setAbstract()

setAbstract(bool  $abstract) : void

Parameters

bool $abstract

isAbstract()

isAbstract() : bool

Returns

bool —

setConstants()

setConstants(\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\ConstantInterface>  $constants) : void

Parameters

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\ConstantInterface> $constants

getConstants()

getConstants() : \phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\ConstantInterface>

Returns

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\ConstantInterface> —

getInheritedConstants()

getInheritedConstants() : \phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\ConstantInterface>

Returns

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\ConstantInterface> —

setMethods()

setMethods(\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\MethodInterface>  $methods) : void

Parameters

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\MethodInterface> $methods

getMethods()

getMethods() : \phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\MethodInterface>

Returns

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\MethodInterface> —

getInheritedMethods()

getInheritedMethods() : \phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\MethodInterface>

Returns

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\MethodInterface> —

setProperties()

setProperties(\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\PropertyInterface>  $properties) : void

Parameters

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\PropertyInterface> $properties

getProperties()

getProperties() : \phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\PropertyInterface>

Returns

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\PropertyInterface> —

getInheritedProperties()

getInheritedProperties() : \phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\PropertyInterface>

Returns

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\PropertyInterface> —

getFile()

getFile() : ?\phpDocumentor\Descriptor\Interfaces\FileInterface

Returns the file associated with the parent class or trait.

Returns

?\phpDocumentor\Descriptor\Interfaces\FileInterface —

setUsedTraits()

setUsedTraits(\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\TraitInterface|\phpDocumentor\Reflection\Fqsen>  $usedTraits) : void

Sets a collection of all traits used by this class.

Parameters

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\TraitInterface|\phpDocumentor\Reflection\Fqsen> $usedTraits

getUsedTraits()

getUsedTraits() : \phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\TraitInterface|\phpDocumentor\Reflection\Fqsen>

Returns the traits used by this class.

Returned values may either be a string (when the Trait is not in this project) or a TraitDescriptor.

Returns

\phpDocumentor\Descriptor\Collection<\phpDocumentor\Descriptor\Interfaces\TraitInterface|\phpDocumentor\Reflection\Fqsen> —