1 | <?php |
||
13 | final class ResourceAttributeMetadata |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | * |
||
18 | * @internal Public in order to reduce the size of the class' serialized representation. |
||
19 | */ |
||
20 | public $name; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | * |
||
25 | * @internal Public in order to reduce the size of the class' serialized representation. |
||
26 | */ |
||
27 | public $description; |
||
28 | |||
29 | /** |
||
30 | * @var bool |
||
31 | * |
||
32 | * @internal Public in order to reduce the size of the class' serialized representation. |
||
33 | */ |
||
34 | public $required = true; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | * |
||
39 | * @internal Public in order to reduce the size of the class' serialized representation. |
||
40 | */ |
||
41 | public $type; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | * |
||
46 | * @internal Public in order to reduce the size of the class' serialized representation. |
||
47 | */ |
||
48 | public $originalType; |
||
49 | |||
50 | public function __construct(string $name) |
||
54 | |||
55 | public function getName() |
||
59 | |||
60 | public function getDescription() |
||
64 | |||
65 | public function setDescription(string $description) |
||
69 | |||
70 | public function isRequired(): bool |
||
74 | |||
75 | public function setRequired(bool $required) |
||
79 | |||
80 | public function getType() |
||
84 | |||
85 | public function setType(string $type) |
||
89 | |||
90 | public function getOriginalType() |
||
94 | |||
95 | public function setOriginalType(string $originalType) |
||
99 | |||
100 | /** |
||
101 | * Returns the names of the properties that should be serialized. |
||
102 | * |
||
103 | * @return string[] |
||
104 | */ |
||
105 | public function __sleep() |
||
115 | } |
||
116 |