1 | <?php |
||
9 | class ClassMetadata extends MergeableClassMetadata |
||
10 | { |
||
11 | /** |
||
12 | * @var bool |
||
13 | */ |
||
14 | public $restResource; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | public $namePrefix; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | public $pathPrefix; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | public $service; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | public $controller; |
||
35 | |||
36 | /** |
||
37 | * @var Right|null |
||
38 | */ |
||
39 | public $postRight; |
||
40 | |||
41 | /** |
||
42 | * @var Right|null |
||
43 | */ |
||
44 | public $putRight; |
||
45 | |||
46 | /** |
||
47 | * @var Right|null |
||
48 | */ |
||
49 | public $deleteRight; |
||
50 | |||
51 | /** |
||
52 | * @var Right|null |
||
53 | */ |
||
54 | public $listRight; |
||
55 | |||
56 | /** |
||
57 | * @var Right|null |
||
58 | */ |
||
59 | public $getRight; |
||
60 | |||
61 | /** |
||
62 | * @var string[] |
||
63 | */ |
||
64 | public $methods = ['LIST', 'POST', 'GET', 'PUT', 'DELETE']; |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 6 | public function merge(MergeableInterface $object) |
|
87 | |||
88 | /** |
||
89 | * @param bool $restResource |
||
90 | */ |
||
91 | 34 | public function setRestResource($restResource) |
|
95 | |||
96 | /** |
||
97 | * @return boolean |
||
98 | */ |
||
99 | 4 | public function isRestResource() |
|
103 | |||
104 | /** |
||
105 | * @return string |
||
106 | */ |
||
107 | 4 | public function getNamePrefix() |
|
111 | |||
112 | /** |
||
113 | * @param string $namePrefix |
||
114 | */ |
||
115 | public function setNamePrefix($namePrefix) |
||
119 | |||
120 | /** |
||
121 | * @return string |
||
122 | */ |
||
123 | 4 | public function getPathPrefix() |
|
127 | |||
128 | /** |
||
129 | * @param string $pathPrefix |
||
130 | */ |
||
131 | 20 | public function setPathPrefix(string $pathPrefix) |
|
135 | |||
136 | /** |
||
137 | * @return string |
||
138 | */ |
||
139 | 4 | public function getController() |
|
143 | |||
144 | /** |
||
145 | * @param string $controller |
||
146 | */ |
||
147 | public function setController($controller) |
||
151 | |||
152 | /** |
||
153 | * @return string |
||
154 | */ |
||
155 | 4 | public function getService() |
|
159 | |||
160 | /** |
||
161 | * @param string $service |
||
162 | */ |
||
163 | 4 | public function setService($service) |
|
164 | { |
||
165 | 4 | $this->service = $service; |
|
166 | 4 | } |
|
167 | |||
168 | /** |
||
169 | * @return Right|null |
||
170 | */ |
||
171 | 2 | public function getDeleteRight() |
|
175 | |||
176 | /** |
||
177 | * @param Right|null $deleteRight |
||
178 | */ |
||
179 | public function setDeleteRight(Right $deleteRight) |
||
183 | |||
184 | /** |
||
185 | * @return Right|null |
||
186 | */ |
||
187 | 2 | public function getPostRight() |
|
191 | |||
192 | /** |
||
193 | * @param Right|null $postRight |
||
194 | */ |
||
195 | public function setPostRight(Right $postRight) |
||
199 | |||
200 | /** |
||
201 | * @return Right|null |
||
202 | */ |
||
203 | 6 | public function getPutRight() |
|
207 | |||
208 | /** |
||
209 | * @param Right|null $putRight |
||
210 | */ |
||
211 | 20 | public function setPutRight(Right $putRight) |
|
215 | |||
216 | /** |
||
217 | * @return Right|null |
||
218 | */ |
||
219 | 8 | public function getListRight() |
|
223 | |||
224 | /** |
||
225 | * @param Right|null $listRight |
||
226 | */ |
||
227 | 20 | public function setListRight(Right $listRight) |
|
231 | |||
232 | /** |
||
233 | * @return Right|null |
||
234 | */ |
||
235 | 10 | public function getGetRight() |
|
239 | |||
240 | /** |
||
241 | * @param Right|null $getRight |
||
242 | */ |
||
243 | 20 | public function setGetRight(Right $getRight) |
|
247 | |||
248 | /** |
||
249 | * @return string[] |
||
250 | */ |
||
251 | 4 | public function getMethods() |
|
255 | |||
256 | /** |
||
257 | * @param string[] $methods |
||
258 | */ |
||
259 | public function setMethods(array $methods) |
||
263 | |||
264 | 34 | public function getPropertyMetadata(string $property): ?PropertyMetadata |
|
272 | } |
||
273 |