Type Resolver

AbstractList
in package
implements Type

AbstractYes

Represents a list of values. This is an abstract class for Array_ and List_.

Tags
psalm-immutable

Table of Contents

Interfaces

Type

Properties

$defaultKeyType  : Type
$defaultValueType  : Type
$keyType  : Type|null
$valueType  : Type|null

Methods

__construct()  : mixed
Initializes this representation of an array with the given Type.
getKeyType()  : Type
Returns the type for the keys of this array.
getOriginalKeyType()  : Type|null
getOriginalValueType()  : Type|null
getValueType()  : Type
Returns the type for the values of this array.

Properties

Methods

__construct()

Initializes this representation of an array with the given Type.

public __construct([Type|null $valueType = null ][, Type|null $keyType = null ]) : mixed
Parameters
$valueType : Type|null = null
$keyType : Type|null = null

getKeyType()

Returns the type for the keys of this array.

public getKeyType() : Type
Return values
Type

getValueType()

Returns the type for the values of this array.

public getValueType() : Type
Return values
Type

        
On this page

Search results