Properties

$fqsen

$fqsen : string

Type

string — Fully Qualified Structural Element Name; the FQCN including method, property of constant name

$name

$name : string

Type

string — The local name for this element

$package

$package : string

Type

string — The package with which this element is associated

$summary

$summary : string

Type

string — A summary describing the function of this element in short.

$description

$description : string

Type

string — A more extensive description of this element.

$line

$line : integer

Type

integer — The line number on which this element occurs.

$types

$types : array<mixed,string>|null

Type

array<mixed,string>|null

$default

$default : string

Type

string

$static

$static : boolean

Type

boolean

$visibility

$visibility : string

Type

string

Methods

__construct()

__construct() 

Initializes this descriptor.

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

getNamespace()

getNamespace() : \phpDocumentor\Descriptor\NamespaceDescriptor|string|null

Returns the namespace for this element or null if none is attached.

Returns

\phpDocumentor\Descriptor\NamespaceDescriptor|string|null

setSummary()

setSummary(string  $summary) : void

Sets the summary describing this element in short.

Parameters

string $summary

getSummary()

getSummary() : string

Returns the summary which describes this element.

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

Returns

string

setDescription()

setDescription(string  $description) : void

Sets a description for this element.

Parameters

string $description

getDescription()

getDescription() : string

Returns the description for this element.

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

Returns

string

setLocation()

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

Sets the file and linenumber where this element is at.

Parameters

\phpDocumentor\Descriptor\FileDescriptor $file
integer $line

getPath()

getPath() : string

Returns the path to the file containing this element relative to the project's root.

Returns

string

getLine()

getLine() : integer

Returns the line number where the definition for this element can be found.

Returns

integer

setLine()

setLine(integer  $lineNumber) : void

Sets the line number for this element's location in the source file.

Parameters

integer $lineNumber

isDeprecated()

isDeprecated() : boolean

Checks whether this element is deprecated.

Returns

boolean

setErrors()

setErrors(\phpDocumentor\Descriptor\Collection  $errors) : void

Sets a list of all errors associated with this element.

Parameters

\phpDocumentor\Descriptor\Collection $errors

__call()

__call(string  $name, array<mixed,mixed>  $arguments) : \phpDocumentor\Descriptor\Collection|null

Dynamically constructs a set of getters to retrieve tag (collections) with.

Important: __call() is not a fast method of access; it is preferred to directly use the getTags() collection. This interface is provided to allow for uniform and easy access to certain tags.

Parameters

string $name
array<mixed,mixed> $arguments

Returns

\phpDocumentor\Descriptor\Collection|null

__toString()

__toString() : string

Represents this object by its unique identifier, the Fully Qualified Structural Element Name.

Returns

string

getInheritedElement()

getInheritedElement() : \phpDocumentor\Descriptor\PropertyDescriptor|null

Returns the property from which this one should inherit, if any.

Returns

\phpDocumentor\Descriptor\PropertyDescriptor|null

setDefault()

setDefault(string  $default) : void

Stores a textual representation of the default value for a property.

Parameters

string $default

getDefault()

getDefault() : string

Returns the textual representation of the default value for a property.

Returns

string

setStatic()

setStatic(boolean  $static) : void

Sets whether this property is static in scope.

Parameters

boolean $static

isStatic()

isStatic() : boolean

Returns whether this property is static in scope.

Returns

boolean

setTypes()

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

Sets the types associated with the value(s) for this property.

Parameters

\phpDocumentor\Descriptor\Collection $types

getTypes()

getTypes() : array<mixed,string>

Returns the types associated with the value(s) for this property.

Returns

array<mixed,string>

setVisibility()

setVisibility(string  $visibility) : string

Sets whether this property is available from inside or outside its class and/or descendants.

Parameters

string $visibility

May be either 'public', 'private' or 'protected'.

Returns

string

getVisibility()

getVisibility() : string

Returns the visibility for this element.

The following values are supported:

  • public
  • protected
  • private

Returns

string