Represents a list of values. This is an abstract class for Array_ and Collection.
- psalm-immutable
Abstract
- Children
-
Implements
phpDocumentor \Reflection \Type Stringable
Methods |
public
__construct
(
?
phpDocumentor Initializes this representation of an array with the given Type. |
public
__toString
() :
string
Returns a rendered output of the Type as it would be used in a DocBlock. |
public
getKeyType
() :
phpDocumentor Returns the type for the keys of this array. |
public
getValueType
() :
phpDocumentor Returns the value for the keys of this array. |
Properties |
protected
$defaultKeyType
|
protected
$keyType
|
protected
$valueType
|