| 1 | <?php |
||
| 13 | class Property |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | * |
||
| 18 | * @Slumber\AsString() |
||
| 19 | */ |
||
| 20 | protected $name; |
||
| 21 | /** |
||
| 22 | * @var TypeRef |
||
| 23 | * |
||
| 24 | * @Slumber\AsObject(TypeRef::class) |
||
| 25 | */ |
||
| 26 | protected $typeRef; |
||
| 27 | /** |
||
| 28 | * @var Visibility |
||
| 29 | * |
||
| 30 | * @Slumber\AsEnum(Visibility::class) |
||
| 31 | */ |
||
| 32 | protected $visibility; |
||
| 33 | /** |
||
| 34 | * @var boolean |
||
| 35 | * |
||
| 36 | * @Slumber\AsBool() |
||
| 37 | */ |
||
| 38 | protected $nullable = false; |
||
| 39 | /** |
||
| 40 | * @var Docs\Doc |
||
| 41 | * |
||
| 42 | * @Slumber\AsObject(Docs\Doc::class) |
||
| 43 | */ |
||
| 44 | protected $doc; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param string $name |
||
| 48 | * @param TypeRef $typeRef |
||
| 49 | * @param Visibility $visibility |
||
| 50 | * @param bool $nullable |
||
| 51 | * @param Docs\Doc $doc |
||
| 52 | */ |
||
| 53 | 11 | public function __construct($name, TypeRef $typeRef, Visibility $visibility, $nullable, Docs\Doc $doc) |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @return string |
||
| 64 | */ |
||
| 65 | 27 | public function getName() |
|
| 69 | |||
| 70 | /** |
||
| 71 | * @return TypeRef |
||
| 72 | */ |
||
| 73 | 21 | public function getTypeRef() |
|
| 77 | |||
| 78 | /** |
||
| 79 | * @return Visibility |
||
| 80 | */ |
||
| 81 | 1 | public function getVisibility() |
|
| 85 | |||
| 86 | /** |
||
| 87 | * @return bool |
||
| 88 | */ |
||
| 89 | 17 | public function isNullable() |
|
| 93 | |||
| 94 | /** |
||
| 95 | * @return Docs\Doc |
||
| 96 | */ |
||
| 97 | 3 | public function getDoc() |
|
| 101 | } |
||
| 102 |