phpDocumentor

ThrowsDescriptor extends TypedAbstract
in package

Descriptor representing the throws tag on a class or trait.

Table of Contents

Properties

$description  : DescriptionDescriptor|null
$errors  : Collection<string|int, Error>
$name  : string
$type  : Type|null

Methods

__construct()  : mixed
Initializes the tag by setting the name and errors,
__toString()  : string
getDescription()  : DescriptionDescriptor
Returns the description for this element.
getErrors()  : Collection<string|int, Error>
Returns all errors associated with this tag.
getName()  : string
Returns the name for this element.
getType()  : Type|null
getTypes()  : array<int, Type>
setDescription()  : void
Sets a description or none to inherit from a parent.
setType()  : void

Properties

$type

protected Type|null $type = null

normalized type of this argument

Methods

__toString()

public __toString() : string
Return values
string

getName()

Returns the name for this element.

public getName() : string
Return values
string

getType()

public getType() : Type|null
Return values
Type|null

getTypes()

public getTypes() : array<int, Type>
Return values
array<int, Type>

setType()

public setType(Type|null $type) : void
Parameters
$type : Type|null

        
On this page

Search results