Throws
extends TagWithType
in package
implements
StaticMethod
Reflection class for a {@}throws tag in a Docblock.
Interfaces, Classes and Traits
Table of Contents
- $description : Description|null
- $name : string
- $type : Type|null
- __construct() : mixed
- __toString() : string
- create() : mixed
- 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
protected
Description|null
$description
= null
Description of the tag.
$name
protected
string
$name
= ''
Name of the tag
$type
protected
Type|null
$type
= null
Methods
__construct()
public
__construct(Type $type[, Description|null $description = null ]) : mixed
Parameters
- $type : Type
- $description : Description|null = null
Return values
mixed —__toString()
public
__toString() : string
Return values
string —create()
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()
public
getDescription() : Description|null
Return values
Description|null —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 —render()
public
render([Formatter|null $formatter = null ]) : string
Parameters
- $formatter : Formatter|null = null
Return values
string —extractTypeFromBody()
protected
static extractTypeFromBody(string $body) : array<string|int, string>
Parameters
- $body : string