Nullable
in package
implements
Type
FinalYes
Value Object representing a nullable type. The real type is wrapped.
Tags
Table of Contents
Interfaces
Properties
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
stringgetActualType()
Provide access to the actual type directly, if needed.
public
getActualType() : Type