Menu

## TagWithType extends BaseTag
in package

TagWithType.php : 23

Parses a tag definition for a DocBlock.

### Table of Contents

$description : Description|null
$name : string
$type : Type|null
getDescription() : Description|null
getName() : string
  Gets the name of this tag.
getType() : Type|null
  Returns the type section of the variable.
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`

### Methods

#### 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 —

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