ConditionalForParameter
extends Mixed_
in package
implements
PseudoType
FinalYes
Value Object representing the conditional type for parameter.
Tags
Table of Contents
Interfaces
Properties
- $else : Type
- $if : Type
- $negated : bool
- $parameterName : string
- $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
- getParameterName() : string
- getTargetType() : Type
- isNegated() : bool
- underlyingType() : Type
Properties
$else
private
Type
$else
$if
private
Type
$if
$negated
private
bool
$negated
$parameterName
private
string
$parameterName
$targetType
private
Type
$targetType
Methods
__construct()
public
__construct(bool $negated, string $parameterName, Type $targetType, Type $if, Type $else) : mixed
Parameters
__toString()
Returns a rendered output of the Type as it would be used in a DocBlock.
public
__toString() : string
Return values
stringgetElse()
public
getElse() : Type
Return values
TypegetIf()
public
getIf() : Type
Return values
TypegetParameterName()
public
getParameterName() : string
Return values
stringgetTargetType()
public
getTargetType() : Type
Return values
TypeisNegated()
public
isNegated() : bool
Return values
boolunderlyingType()
public
underlyingType() : Type