Documentation

Callable_
in package
implements Type

Value Object representing a Callable type.

Tags
psalm-immutable

Interfaces, Classes and Traits

Type

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

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

Search results