1 | <?php |
||
20 | final class Nullable implements Type |
||
21 | { |
||
22 | /** |
||
23 | * @var Type |
||
24 | */ |
||
25 | private $realType; |
||
26 | |||
27 | /** |
||
28 | * Initialises this nullable type using the real type embedded |
||
29 | * |
||
30 | * @param Type $realType |
||
31 | */ |
||
32 | 1 | public function __construct(Type $realType) |
|
36 | |||
37 | /** |
||
38 | * Provide access to the actual type directly, if needed. |
||
39 | * |
||
40 | * @return Type |
||
41 | */ |
||
42 | 1 | public function getActualType() |
|
46 | |||
47 | /** |
||
48 | * Returns a rendered output of the Type as it would be used in a DocBlock. |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public function __toString() |
||
56 | } |
||
57 |