Type Resolver

Nullable
in package
implements Type

FinalYes

Value Object representing a nullable type. The real type is wrapped.

Tags
psalm-immutable

Table of Contents

Interfaces

Type

Properties

$realType  : Type

Methods

__construct()  : mixed
Initialises this nullable type using the real type embedded
__toString()  : string
Returns a rendered output of the Type as it would be used in a DocBlock.
getActualType()  : Type
Provide access to the actual type directly, if needed.

Properties

$realType

private Type $realType

The actual type that is wrapped

Methods

__construct()

Initialises this nullable type using the real type embedded

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

__toString()

Returns a rendered output of the Type as it would be used in a DocBlock.

public __toString() : string
Return values
string

getActualType()

Provide access to the actual type directly, if needed.

public getActualType() : Type
Return values
Type

        
On this page

Search results