1 | <?php |
||
15 | final class ResourceMetadata |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | * |
||
20 | * @internal Public in order to reduce the size of the class' serialized representation. |
||
21 | */ |
||
22 | public $class; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | * |
||
27 | * @internal Public in order to reduce the size of the class' serialized representation. |
||
28 | */ |
||
29 | public $shortName; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * |
||
34 | * @internal Public in order to reduce the size of the class' serialized representation. |
||
35 | */ |
||
36 | public $description; |
||
37 | |||
38 | /** |
||
39 | * @var ResourceAttributeMetadata[] |
||
40 | * |
||
41 | * @internal Public in order to reduce the size of the class' serialized representation. |
||
42 | */ |
||
43 | public $attributes; |
||
44 | |||
45 | public function __construct(string $class) |
||
52 | |||
53 | public function getClass(): string |
||
57 | |||
58 | public function getShortName(): string |
||
62 | |||
63 | public function setShortName(string $shortName) |
||
67 | |||
68 | public function getDescription(): string |
||
72 | |||
73 | public function setDescription(string $description) |
||
77 | |||
78 | /** |
||
79 | * @return ResourceAttributeMetadata[] |
||
80 | */ |
||
81 | public function getAttributes(): array |
||
85 | |||
86 | public function setAttributes(array $attributes) |
||
90 | |||
91 | /** |
||
92 | * @param $name |
||
93 | * |
||
94 | * @return ResourceAttributeMetadata|null |
||
95 | */ |
||
96 | public function getAttribute($name) |
||
100 | |||
101 | public function addAttribute(ResourceAttributeMetadata $attribute) |
||
105 | |||
106 | /** |
||
107 | * Returns the names of the properties that should be serialized. |
||
108 | * |
||
109 | * @return string[] |
||
110 | */ |
||
111 | public function __sleep() |
||
120 | } |
||
121 |