| 1 | <?php |
||
| 20 | class ReflectionNamedType extends BaseReflectionNamedType |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * If type allows null or not |
||
| 24 | * |
||
| 25 | * @var bool |
||
| 26 | */ |
||
| 27 | private $allowsNull; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Is type built-in or not |
||
| 31 | * |
||
| 32 | * @var |
||
| 33 | */ |
||
| 34 | private $isBuiltin; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var string Type name |
||
| 38 | */ |
||
| 39 | private $type; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Initializes reflection data |
||
| 43 | */ |
||
| 44 | public function __construct($type, $allowsNull, $isBuiltin) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritDoc |
||
| 53 | */ |
||
| 54 | public function allowsNull() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritDoc |
||
| 61 | */ |
||
| 62 | public function isBuiltin() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @inheritDoc |
||
| 69 | */ |
||
| 70 | public function __toString() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @inheritDoc |
||
| 77 | */ |
||
| 78 | public function getName() |
||
| 82 | } |
||
| 83 |