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

  • psalm-immutable
public __construct(?phpDocumentor\Reflection\Type $valueType = NULL, ?phpDocumentor\Reflection\Type $keyType = NULL)

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\Reflection\Type

Returns the type for the keys of this array.

public getValueType() : phpDocumentor\Reflection\Type

Returns the value for the keys of this array.

protected $defaultKeyType
  • var Type
protected $keyType
  • var Type|null
protected $valueType
  • var Type
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only