Type Resolver

PublicPropertiesOf extends PropertiesOf
in package

FinalYes

Value Object representing the `public-properties-of` type.

Tags
psalm-immutable

Table of Contents

Properties

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

Methods

__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.
getKeyType()  : Type
Returns the type for the keys of this array.
getOriginalKeyType()  : Type|null
getOriginalValueType()  : Type|null
getType()  : Type
getValueType()  : Type
Returns the type for the values of this array.
underlyingType()  : Type

Properties

Methods

__construct()

Initializes this representation of an array with the given Type.

public __construct(Type $type) : mixed
Parameters
$type : Type

__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 type for the values of this array.

public getValueType() : Type
Return values
Type

        
On this page

Search results