Callable_
in package
implements
Type
Value Object representing a Callable type.
Tags
Interfaces, Classes and Traits
Table of Contents
- $parameters : array<string|int, CallableParameter>
- $returnType : Type|null
- __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
Return values
mixed —__toString()
Returns a rendered output of the Type as it would be used in a DocBlock.
public
__toString() : string
Return values
string —getParameters()
public
getParameters() : array<string|int, CallableParameter>
Return values
array<string|int, CallableParameter> —getReturnType()
public
getReturnType() : Type|null