Documentation

List_ extends Array_
in package
implements PseudoType

Value Object representing the type 'list'.

Tags
psalm-immutable

Interfaces, Classes, Traits and Enums

PseudoType

Table of Contents

$defaultKeyType  : Type
$keyType  : Type|null
$valueType  : Type
__construct()  : mixed
__toString()  : string
Returns a rendered output of the Type as it would be used in a DocBlock.
getKeyType()  : Type
Returns the type for the keys of this array.
getValueType()  : Type
Returns the value for the keys of this array.
underlyingType()  : Type

Properties

Methods

__construct()

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

getKeyType()

Returns the type for the keys of this array.

public getKeyType() : Type
Return values
Type

getValueType()

Returns the value for the keys of this array.

public getValueType() : Type
Return values
Type

underlyingType()

public underlyingType() : Type
Return values
Type

Search results