1 | <?php |
||
17 | class Resource implements ResourceInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $name; |
||
23 | |||
24 | /** |
||
25 | * @var string[] |
||
26 | */ |
||
27 | private $interfaces; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $model; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $driver; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | private $driverManager; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $driverMappingPath; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | private $driverMappingFormat; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | */ |
||
57 | private $repository; |
||
58 | |||
59 | /** |
||
60 | * @var string|null |
||
61 | */ |
||
62 | private $factory; |
||
63 | |||
64 | /** |
||
65 | * @var string|null |
||
66 | */ |
||
67 | private $form; |
||
68 | |||
69 | /** |
||
70 | * @var string|null |
||
71 | */ |
||
72 | private $choiceForm; |
||
73 | |||
74 | /** |
||
75 | * @var string|null |
||
76 | */ |
||
77 | private $domainManager; |
||
78 | |||
79 | /** |
||
80 | * @var string|null |
||
81 | */ |
||
82 | private $controller; |
||
83 | |||
84 | /** |
||
85 | * @var string|null |
||
86 | */ |
||
87 | private $idPropertyPath; |
||
88 | |||
89 | /** |
||
90 | * @var string|null |
||
91 | */ |
||
92 | private $labelPropertyPath; |
||
93 | |||
94 | /** |
||
95 | * @var ResourceInterface|null |
||
96 | */ |
||
97 | private $translation; |
||
98 | |||
99 | /** |
||
100 | * @param string $name |
||
101 | * @param string|string[] $interfaces |
||
102 | * @param string $model |
||
103 | */ |
||
104 | public function __construct($name, $interfaces, $model) |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function getName() |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | */ |
||
122 | public function getInterfaces() |
||
126 | |||
127 | /** |
||
128 | * {@inheritdoc} |
||
129 | */ |
||
130 | public function getModel() |
||
134 | |||
135 | 30 | /** |
|
136 | 30 | * {@inheritdoc} |
|
137 | 30 | */ |
|
138 | public function setModel($model) |
||
142 | 30 | ||
143 | 30 | /** |
|
144 | 30 | * {@inheritdoc} |
|
145 | 30 | */ |
|
146 | 30 | public function getDriver() |
|
150 | 30 | ||
151 | 30 | /** |
|
152 | 30 | * {@inheritdoc} |
|
153 | */ |
||
154 | public function setDriver($driver) |
||
158 | |||
159 | 13 | /** |
|
160 | * {@inheritdoc} |
||
161 | */ |
||
162 | public function getDriverManager() |
||
166 | |||
167 | 14 | /** |
|
168 | * {@inheritdoc} |
||
169 | */ |
||
170 | public function setDriverManager($driverManager) |
||
174 | |||
175 | 30 | /** |
|
176 | 30 | * {@inheritdoc} |
|
177 | */ |
||
178 | public function getDriverMappingPath() |
||
182 | |||
183 | 14 | /** |
|
184 | * {@inheritdoc} |
||
185 | */ |
||
186 | public function setDriverMappingPath($driverMappingPath) |
||
190 | |||
191 | 30 | /** |
|
192 | 30 | * {@inheritdoc} |
|
193 | */ |
||
194 | public function getDriverMappingFormat() |
||
198 | |||
199 | 14 | /** |
|
200 | * {@inheritdoc} |
||
201 | */ |
||
202 | public function setDriverMappingFormat($driverMappingFormat) |
||
206 | |||
207 | 30 | /** |
|
208 | 30 | * {@inheritdoc} |
|
209 | */ |
||
210 | public function getRepository() |
||
214 | |||
215 | 14 | /** |
|
216 | * {@inheritdoc} |
||
217 | */ |
||
218 | public function setRepository($repository) |
||
222 | |||
223 | 30 | /** |
|
224 | 30 | * {@inheritdoc} |
|
225 | */ |
||
226 | public function getFactory() |
||
230 | |||
231 | 13 | /** |
|
232 | * {@inheritdoc} |
||
233 | */ |
||
234 | public function setFactory($factory) |
||
238 | |||
239 | 14 | /** |
|
240 | * {@inheritdoc} |
||
241 | */ |
||
242 | public function getForm() |
||
246 | |||
247 | 30 | /** |
|
248 | 30 | * {@inheritdoc} |
|
249 | */ |
||
250 | public function setForm($form) |
||
254 | |||
255 | 14 | /** |
|
256 | * {@inheritdoc} |
||
257 | */ |
||
258 | public function getChoiceForm() |
||
262 | |||
263 | 30 | /** |
|
264 | 30 | * {@inheritdoc} |
|
265 | */ |
||
266 | public function setChoiceForm($choiceForm) |
||
270 | |||
271 | 14 | /** |
|
272 | * {@inheritdoc} |
||
273 | */ |
||
274 | public function getDomainManager() |
||
278 | |||
279 | 30 | /** |
|
280 | 30 | * {@inheritdoc} |
|
281 | */ |
||
282 | public function setDomainManager($domainManager) |
||
286 | |||
287 | 14 | /** |
|
288 | * {@inheritdoc} |
||
289 | */ |
||
290 | public function getController() |
||
294 | |||
295 | 30 | /** |
|
296 | 30 | * {@inheritdoc} |
|
297 | */ |
||
298 | public function setController($controller) |
||
302 | |||
303 | 14 | /** |
|
304 | * {@inheritdoc} |
||
305 | */ |
||
306 | public function getIdPropertyPath() |
||
310 | |||
311 | 30 | /** |
|
312 | 30 | * {@inheritdoc} |
|
313 | */ |
||
314 | public function setIdPropertyPath($idPropertyPath) |
||
318 | |||
319 | 14 | /** |
|
320 | * {@inheritdoc} |
||
321 | */ |
||
322 | public function getLabelPropertyPath() |
||
326 | |||
327 | 30 | /** |
|
328 | 30 | * {@inheritdoc} |
|
329 | */ |
||
330 | public function setLabelPropertyPath($labelPropertyPath) |
||
334 | |||
335 | 14 | /** |
|
336 | * {@inheritdoc} |
||
337 | */ |
||
338 | public function getTranslation() |
||
342 | |||
343 | 30 | /** |
|
344 | 30 | * {@inheritdoc} |
|
345 | */ |
||
346 | public function setTranslation(ResourceInterface $translation = null) |
||
350 | } |
||
351 |