Type Resolver

Conditional extends Mixed_
in package
implements PseudoType

FinalYes

Value Object representing the conditional type.

Tags
psalm-immutable

Table of Contents

Interfaces

PseudoType

Properties

$else  : Type
$if  : Type
$negated  : bool
$subjectType  : Type
$targetType  : Type

Methods

__construct()  : mixed
__toString()  : string
Returns a rendered output of the Type as it would be used in a DocBlock.
getElse()  : Type
getIf()  : Type
getSubjectType()  : Type
getTargetType()  : Type
isNegated()  : bool
underlyingType()  : Type

Properties

Methods

__toString()

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

public __toString() : string
Return values
string

isNegated()

public isNegated() : bool
Return values
bool

        
On this page

Search results