PropertyDescriptor

Extends \phpDocumentor\Descriptor\DescriptorAbstract Implements \phpDocumentor\Descriptor\Interfaces\PropertyInterface, \phpDocumentor\Descriptor\Interfaces\VisibilityInterface

Descriptor representing a property.

package

Default

Methods

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

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

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.

Arguments

$name

string

$arguments

array<mixed,mixed>

Response

\phpDocumentor\Descriptor\Collection|null

Initializes this descriptor.

__construct() 
inherited

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

__toString() : string
inherited

Response

string

getAuthor

getAuthor() : \phpDocumentor\Descriptor\Collection
inherited

Returns the copyrights for this element.

getCopyright() : \phpDocumentor\Descriptor\Collection
inherited

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

getDefault() : string

Response

string

Returns the description for this element.

getDescription() : string
inherited

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

Response

string

Returns all errors that occur in this element.

getErrors() : \phpDocumentor\Descriptor\Collection
inherited

Returns the file in which this element resides or null in case the element is not bound to a file.

getFile() : \phpDocumentor\Descriptor\FileDescriptor|null
inherited

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

getFullyQualifiedStructuralElementName() : string
inherited

Response

string

getInheritedElement

getInheritedElement() : \phpDocumentor\Descriptor\DescriptorAbstract|null
inherited

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

getLine() : integer
inherited

Response

integer

Returns the local name for this element.

getName() : string
inherited

Response

string

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

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

Returns the package name for this element.

getPackage() : \phpDocumentor\Descriptor\PackageDescriptor
inherited

getParent

getParent() : \phpDocumentor\Descriptor\ClassDescriptor|\phpDocumentor\Descriptor\TraitDescriptor

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

getPath() : string
inherited

Response

string

Returns the summary which describes this element.

getSummary() : string
inherited

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

Response

string

Returns the tags associated with this element.

getTags() : \phpDocumentor\Descriptor\Collection
inherited

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

getTypes() : array<mixed,string>

Response

array<mixed,string>

getVar

getVar() : \phpDocumentor\Descriptor\Collection

Returns the versions for this element.

getVersion() : \phpDocumentor\Descriptor\Collection
inherited

Returns the visibility for this element.

getVisibility() : string

The following values are supported:

  • public
  • protected
  • private

Response

string

Checks whether this element is deprecated.

isDeprecated() : boolean
inherited

Response

boolean

Returns whether this property is static in scope.

isStatic() : boolean

Response

boolean

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

setDefault(string $default) : void

Arguments

$default

string

Sets a description for this element.

setDescription(string $description) : void
inherited

Arguments

$description

string

Sets a list of all errors associated with this element.

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

Sets the file to which this element is associated.

setFile(\phpDocumentor\Descriptor\FileDescriptor $file) : false
inherited

Arguments

Response

false

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

setFullyQualifiedStructuralElementName(string $name) : void
inherited

Arguments

$name

string

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

setLine(integer $lineNumber) : void
inherited

Arguments

$lineNumber

integer

Sets the file and linenumber where this element is at.

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

Arguments

$line

integer

Sets the local name for this element.

setName(string $name) : void
inherited

Arguments

$name

string

Sets the namespace (name) for this element.

setNamespace(\phpDocumentor\Descriptor\NamespaceDescriptor|string $namespace) 
inherited

Arguments

Sets the name of the package to which this element belongs.

setPackage(\phpDocumentor\Descriptor\PackageDescriptor $package) : void
inherited

setParent

setParent(\phpDocumentor\Descriptor\ClassDescriptor|\phpDocumentor\Descriptor\TraitDescriptor $parent) 

Sets whether this property is static in scope.

setStatic(boolean $static) : void

Arguments

$static

boolean

Sets the summary describing this element in short.

setSummary(string $summary) : void
inherited

Arguments

$summary

string

Sets the tags associated with this element.

setTags(\phpDocumentor\Descriptor\Collection $tags) : void
inherited

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

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

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

setVisibility(string $visibility) : string

Arguments

$visibility

string

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

Response

string

Properties

parent

parent : \phpDocumentor\Descriptor\ClassDescriptor|\phpDocumentor\Descriptor\TraitDescriptor

types

types : array<mixed,string>|null
var

Type(s)

array<mixed,string>|null

default

default : string
var

Type(s)

string

static

static : boolean
var

Type(s)

boolean

visibility

visibility : string
var

Type(s)

string

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

fqsen : string
inherited
var

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

Type(s)

string

The local name for this element

name : string
inherited
var

The local name for this element

Type(s)

string

The namespace for this element

namespace : \phpDocumentor\Descriptor\NamespaceDescriptor
inherited
var

The namespace for this element

Type(s)

\phpDocumentor\Descriptor\NamespaceDescriptor

The package with which this element is associated

package : string
inherited
var

The package with which this element is associated

Type(s)

string

A summary describing the function of this element in short.

summary : string
inherited
var

A summary describing the function of this element in short.

Type(s)

string

A more extensive description of this element.

description : string
inherited
var

A more extensive description of this element.

Type(s)

string

The file to which this element belongs; if applicable

fileDescriptor : \phpDocumentor\Descriptor\FileDescriptor|null
inherited
var

The file to which this element belongs; if applicable

Type(s)

\phpDocumentor\Descriptor\FileDescriptor|null

The line number on which this element occurs.

line : integer
inherited
var

The line number on which this element occurs.

Type(s)

integer

The tags associated with this element.

tags : \phpDocumentor\Descriptor\Collection
inherited
var

The tags associated with this element.

Type(s)

\phpDocumentor\Descriptor\Collection

A list of errors found while building this element.

errors : \phpDocumentor\Descriptor\Collection
inherited
var

A list of errors found while building this element.

Type(s)

\phpDocumentor\Descriptor\Collection

the element from which to inherit information in this element

inheritedElement : \phpDocumentor\Descriptor\DescriptorAbstract|null
inherited
var

the element from which to inherit information in this element

Type(s)

\phpDocumentor\Descriptor\DescriptorAbstract|null