1 | <?php |
||
18 | class ReflectionType extends BaseReflectionType |
||
19 | { |
||
20 | /** |
||
21 | * If type allows null or not |
||
22 | * |
||
23 | * @var boolean |
||
24 | */ |
||
25 | private $allowsNull; |
||
26 | |||
27 | /** |
||
28 | * Is type built-in or not |
||
29 | * |
||
30 | * @var |
||
31 | */ |
||
32 | private $isBuiltin; |
||
33 | |||
34 | /** |
||
35 | * @var string Type name |
||
36 | */ |
||
37 | private $type; |
||
38 | |||
39 | /** |
||
40 | * Initializes reflection data |
||
41 | */ |
||
42 | 2 | public function __construct($type, $allowsNull, $isBuiltin) |
|
48 | |||
49 | /** |
||
50 | * @inheritDoc |
||
51 | */ |
||
52 | 2 | public function allowsNull() |
|
56 | |||
57 | /** |
||
58 | * @inheritDoc |
||
59 | */ |
||
60 | 2 | public function isBuiltin() |
|
64 | |||
65 | /** |
||
66 | * @inheritDoc |
||
67 | */ |
||
68 | 2 | public function __toString() |
|
72 | } |
||
73 |