Menu

## Var_ extends TagWithType
in package
implements StaticMethod

Var_.php : 35

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

### Interfaces, Classes and Traits

StaticMethod

### Table of Contents

$description : Description|null
$name : string
$type : Type|null
$variableName : string|null
__construct() : mixed
__toString() : string
  Returns a string representation for this tag.
create() : 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
extractTypeFromBody() : array<string|int, string>

### Properties

#### $description

BaseTag.php : 28
`protected Description|null $description`

Description of the tag.

#### $name

BaseTag.php : 25
`protected string $name = ''`

Name of the tag

#### $type

TagWithType.php : 26
`protected Type|null $type`

#### $variableName

Var_.php : 38
`protected string|null $variableName = ''`

### Methods

#### __construct()

Var_.php : 40
`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

##### Return values

mixed —

#### __toString()

Var_.php : 102

Returns a string representation for this tag.

`public __toString() : string`

##### Return values

string —

#### create()

Var_.php : 50
`public static create(string $body[, TypeResolver|null $typeResolver = null ][, DescriptionFactory|null $descriptionFactory = null ][, Context|null $context = null ]) : mixed`

##### Parameters

$body : string
$typeResolver : TypeResolver|null = null
$descriptionFactory : DescriptionFactory|null = null
$context : Context|null = null

##### Return values

mixed —

#### getDescription()

BaseTag.php : 40
`public getDescription() : Description|null`

##### Return values

Description|null —

#### getName()

BaseTag.php : 35

Gets the name of this tag.

`public getName() : string`

##### Return values

string —

The name of this tag.

#### getType()

TagWithType.php : 31

Returns the type section of the variable.

`public getType() : Type|null`

##### Return values

Type|null —

#### getVariableName()

Var_.php : 94

Returns the variable's name.

`public getVariableName() : string|null`

##### Return values

string|null —

#### render()

BaseTag.php : 45
`public render([Formatter|null $formatter = null ]) : string`

##### Parameters

$formatter : Formatter|null = null

##### Return values

string —

#### extractTypeFromBody()

TagWithType.php : 39
`protected static extractTypeFromBody(string $body) : array<string|int, string>`

##### Parameters

$body : string

##### Return values

array<string|int, string> —

## Search results