Param
extends TagWithType
in package
FinalYes
Reflection class for the {@}param tag in a Docblock.
Table of Contents
Properties
- $description : Description|null
- $name : string
- $type : Type|null
- $isReference : bool
- $isVariadic : bool
- $variableName : string|null
Methods
- __construct() : mixed
- __toString() : string
- Returns a string representation for this tag.
- create() : Tag|mixed
- getDescription() : Description|null
- getName() : string
- Gets the name of this tag.
- getType() : Type|null
- Returns the type section of the variable.
- getVariableName() : string|null
- Returns the variable's name.
- isReference() : bool
- Returns whether this tag is passed by reference.
- isVariadic() : bool
- Returns whether this tag is variadic.
- render() : string
Properties
$description
protected
Description|null
$description
= null
Description of the tag.
$name
protected
string
$name
= ''
Name of the tag
$type
protected
Type|null
$type
= null
$isReference
private
bool
$isReference
determines whether this is passed by reference
$isVariadic
private
bool
$isVariadic
determines whether this is a variadic argument
$variableName
private
string|null
$variableName
= null
Methods
__construct()
public
__construct(string|null $variableName[, Type|null $type = null ][, bool $isVariadic = false ][, Description|null $description = null ][, bool $isReference = false ]) : mixed
Parameters
- $variableName : string|null
- $type : Type|null = null
- $isVariadic : bool = false
- $description : Description|null = null
- $isReference : bool = false
__toString()
Returns a string representation for this tag.
public
__toString() : string
Return values
stringcreate()
public
final static create(string $body) : Tag|mixed
Parameters
- $body : string
Return values
Tag|mixed —Class that implements Tag
getDescription()
public
getDescription() : Description|null
Return values
Description|nullgetName()
Gets the name of this tag.
public
getName() : string
Return values
string —The name of this tag.
getType()
Returns the type section of the variable.
public
getType() : Type|null
Return values
Type|nullgetVariableName()
Returns the variable's name.
public
getVariableName() : string|null
Return values
string|nullisReference()
Returns whether this tag is passed by reference.
public
isReference() : bool
Return values
boolisVariadic()
Returns whether this tag is variadic.
public
isVariadic() : bool
Return values
boolrender()
public
render([Formatter|null $formatter = null ]) : string
Parameters
- $formatter : Formatter|null = null