Reflection Docblock

Property extends TagWithType
in package

FinalYes

Reflection class for a {@}property tag in a Docblock.

Table of Contents

Properties

$description  : Description|null
$name  : string
$type  : Type|null
$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.
render()  : string

Properties

$name

protected string $name = ''

Name of the tag

$variableName

protected string|null $variableName = null

Methods

__construct()

public __construct(string|null $variableName[, Type|null $type = null ][, Description|null $description = null ]) : mixed
Parameters
$variableName : string|null
$type : Type|null = null
$description : Description|null = null

__toString()

Returns a string representation for this tag.

public __toString() : string
Return values
string

create()

public final static create(string $body) : Tag|mixed
Parameters
$body : string
Return values
Tag|mixed

Class that implements Tag

getName()

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

getVariableName()

Returns the variable's name.

public getVariableName() : string|null
Return values
string|null

render()

public render([Formatter|null $formatter = null ]) : string
Parameters
$formatter : Formatter|null = null
Return values
string

        
On this page

Search results