Nullable
in package
implements
Type
Value Object representing a nullable type. The real type is wrapped.
Tags
Interfaces, Classes and Traits
Table of Contents
- $realType : Type
- __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
Methods
__construct()
Initialises this nullable type using the real type embedded
public
__construct(Type $realType) : mixed
Parameters
- $realType : Type
Return values
mixed —__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