PropertyDescriptor
extends TypedVariableAbstract
in package
Descriptor representing the property tag on a class or trait.
Table of Contents
Properties
- $description : DescriptionDescriptor|null
- $errors : Collection<string|int, Error>
- $name : string
- $type : Type|null
- $variableName : string
Methods
- __construct() : mixed
- Initializes the tag by setting the name and errors,
- __toString() : string
- getDescription() : DescriptionDescriptor
- Returns the description for this element.
- getErrors() : Collection<string|int, Error>
- Returns all errors associated with this tag.
- getName() : string
- Returns the name for this element.
- getType() : Type|null
- getTypes() : array<int, Type>
- getVariableName() : string
- Retrieves the variable name stored on this descriptor.
- setDescription() : void
- Sets a description or none to inherit from a parent.
- setType() : void
- setVariableName() : void
- Sets the variable name on this descriptor.
Properties
$description
protected
DescriptionDescriptor|null
$description
= null
$errors
protected
Collection<string|int, Error>
$errors
A collection of errors found during filtering.
$name
protected
string
$name
= ''
$type
protected
Type|null
$type
= null
normalized type of this argument
$variableName
protected
string
$variableName
= ''
variableName
Methods
__construct()
Initializes the tag by setting the name and errors,
public
__construct(string $name[, DescriptionDescriptor|null $description = null ]) : mixed
Parameters
- $name : string
- $description : DescriptionDescriptor|null = null
__toString()
public
__toString() : string
Return values
stringgetDescription()
Returns the description for this element.
public
getDescription() : DescriptionDescriptor
This method will automatically attempt to inherit the parent's description if this one has none.
Return values
DescriptionDescriptorgetErrors()
Returns all errors associated with this tag.
public
getErrors() : Collection<string|int, Error>
Return values
Collection<string|int, Error>getName()
Returns the name for this element.
public
getName() : string
Return values
stringgetType()
public
getType() : Type|null
Return values
Type|nullgetTypes()
public
getTypes() : array<int, Type>
Return values
array<int, Type>getVariableName()
Retrieves the variable name stored on this descriptor.
public
getVariableName() : string
Return values
stringsetDescription()
Sets a description or none to inherit from a parent.
public
setDescription(DescriptionDescriptor|null $description) : void
Parameters
- $description : DescriptionDescriptor|null
setType()
public
setType(Type|null $type) : void
Parameters
- $type : Type|null
setVariableName()
Sets the variable name on this descriptor.
public
setVariableName(string $variableName) : void
Parameters
- $variableName : string