1 | <?php |
||
6 | trait GSchemaBodyElementsTrait |
||
7 | { |
||
8 | use IsOKToolboxTrait; |
||
9 | /** |
||
10 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TAssociationType[] $association |
||
11 | */ |
||
12 | private $association = []; |
||
13 | |||
14 | /** |
||
15 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TEntityTypeType[] $entityType |
||
16 | */ |
||
17 | private $entityType = []; |
||
18 | |||
19 | /** |
||
20 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\EntityContainer[] $entityContainer |
||
21 | */ |
||
22 | private $entityContainer = []; |
||
23 | |||
24 | /** |
||
25 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionType[] $function |
||
26 | */ |
||
27 | private $function = []; |
||
28 | |||
29 | /** |
||
30 | * Adds as association |
||
31 | * |
||
32 | * @return self |
||
33 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TAssociationType $association |
||
34 | */ |
||
35 | public function addToAssociation(TAssociationType $association) |
||
40 | |||
41 | /** |
||
42 | * isset association |
||
43 | * |
||
44 | * @param scalar $index |
||
45 | * @return boolean |
||
46 | */ |
||
47 | public function issetAssociation($index) |
||
51 | |||
52 | /** |
||
53 | * unset association |
||
54 | * |
||
55 | * @param scalar $index |
||
56 | * @return void |
||
57 | */ |
||
58 | public function unsetAssociation($index) |
||
62 | |||
63 | /** |
||
64 | * Gets as association |
||
65 | * |
||
66 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TAssociationType[] |
||
67 | */ |
||
68 | public function getAssociation() |
||
72 | |||
73 | /** |
||
74 | * Sets a new association |
||
75 | * |
||
76 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TAssociationType[] $association |
||
77 | * @return self |
||
78 | */ |
||
79 | public function setAssociation(array $association) |
||
84 | |||
85 | /** |
||
86 | * Adds as entityType |
||
87 | * |
||
88 | * @return self |
||
89 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TEntityTypeType $entityType |
||
90 | */ |
||
91 | public function addToEntityType(TEntityTypeType $entityType) |
||
96 | |||
97 | /** |
||
98 | * isset entityType |
||
99 | * |
||
100 | * @param scalar $index |
||
101 | * @return boolean |
||
102 | */ |
||
103 | public function issetEntityType($index) |
||
107 | |||
108 | /** |
||
109 | * unset entityType |
||
110 | * |
||
111 | * @param scalar $index |
||
112 | * @return void |
||
113 | */ |
||
114 | public function unsetEntityType($index) |
||
118 | |||
119 | /** |
||
120 | * Gets as entityType |
||
121 | * |
||
122 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TEntityTypeType[] |
||
123 | */ |
||
124 | public function getEntityType() |
||
128 | |||
129 | /** |
||
130 | * Sets a new entityType |
||
131 | * |
||
132 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TEntityTypeType[] $entityType |
||
133 | * @return self |
||
134 | */ |
||
135 | public function setEntityType(array $entityType) |
||
140 | |||
141 | /** |
||
142 | * Adds as entityContainer |
||
143 | * |
||
144 | * @return self |
||
145 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\EntityContainer $entityContainer |
||
146 | */ |
||
147 | public function addToEntityContainer(EntityContainer $entityContainer) |
||
152 | |||
153 | /** |
||
154 | * isset entityContainer |
||
155 | * |
||
156 | * @param scalar $index |
||
157 | * @return boolean |
||
158 | */ |
||
159 | public function issetEntityContainer($index) |
||
163 | |||
164 | /** |
||
165 | * unset entityContainer |
||
166 | * |
||
167 | * @param scalar $index |
||
168 | * @return void |
||
169 | */ |
||
170 | public function unsetEntityContainer($index) |
||
174 | |||
175 | /** |
||
176 | * Gets as entityContainer |
||
177 | * |
||
178 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\EntityContainer[] |
||
179 | */ |
||
180 | public function getEntityContainer() |
||
184 | |||
185 | /** |
||
186 | * Sets a new entityContainer |
||
187 | * |
||
188 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\EntityContainer[] $entityContainer |
||
189 | * @return self |
||
190 | */ |
||
191 | public function setEntityContainer(array $entityContainer) |
||
196 | |||
197 | /** |
||
198 | * Adds as function |
||
199 | * |
||
200 | * @return self |
||
201 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionType $function |
||
202 | */ |
||
203 | public function addToFunction(TFunctionType $function) |
||
208 | |||
209 | /** |
||
210 | * isset function |
||
211 | * |
||
212 | * @param scalar $index |
||
213 | * @return boolean |
||
214 | */ |
||
215 | public function issetFunction($index) |
||
219 | |||
220 | /** |
||
221 | * unset function |
||
222 | * |
||
223 | * @param scalar $index |
||
224 | * @return void |
||
225 | */ |
||
226 | public function unsetFunction($index) |
||
230 | |||
231 | /** |
||
232 | * Gets as function |
||
233 | * |
||
234 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionType[] |
||
235 | */ |
||
236 | public function getFunction() |
||
240 | |||
241 | /** |
||
242 | * Sets a new function |
||
243 | * |
||
244 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionType[] $function |
||
245 | * @return self |
||
246 | */ |
||
247 | public function setFunction(array $function) |
||
252 | |||
253 | public function isBodyElementsOK(&$msg = null) |
||
286 | } |
||
287 |