Documentation

Expression
in package
implements Type

Represents an expression type as described in the PSR-5, the PHPDoc Standard.

Tags
psalm-immutable

Interfaces, Classes, Traits and Enums

Type

Table of Contents

$valueType  : Type
__construct()  : mixed
Initializes this representation of an array with the given Type.
__toString()  : string
Returns a rendered output of the Type as it would be used in a DocBlock.
getValueType()  : Type
Returns the value for the keys of this array.

Properties

Methods

__construct()

Initializes this representation of an array with the given Type.

public __construct(Type $valueType) : mixed
Parameters
$valueType : Type
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

getValueType()

Returns the value for the keys of this array.

public getValueType() : Type
Return values
Type

Search results