Callable_
in package
implements
Type
FinalYes
Value Object representing a Callable type.
Tags
Table of Contents
Interfaces
Properties
- $parameters : array<string|int, CallableParameter>
- $returnType : Type|null
Methods
- __construct() : mixed
- __toString() : string
- Returns a rendered output of the Type as it would be used in a DocBlock.
- getParameters() : array<string|int, CallableParameter>
- getReturnType() : Type|null
Properties
$parameters
private
array<string|int, CallableParameter>
$parameters
$returnType
private
Type|null
$returnType
Methods
__construct()
public
__construct([array<string|int, CallableParameter> $parameters = [] ][, Type|null $returnType = null ]) : mixed
Parameters
- $parameters : array<string|int, CallableParameter> = []
- $returnType : Type|null = null
__toString()
Returns a rendered output of the Type as it would be used in a DocBlock.
public
__toString() : string
Return values
stringgetParameters()
public
getParameters() : array<string|int, CallableParameter>
Return values
array<string|int, CallableParameter>getReturnType()
public
getReturnType() : Type|null