@@ 14-208 (lines=195) @@ | ||
11 | /** |
|
12 | * Class representing EntitySetAnonymousType |
|
13 | */ |
|
14 | class EntitySetAnonymousType extends IsOK |
|
15 | { |
|
16 | use TEntitySetAttributesTrait; |
|
17 | ||
18 | /** |
|
19 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType[] $documentation |
|
20 | */ |
|
21 | private $documentation = []; |
|
22 | ||
23 | /** |
|
24 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType[] $valueAnnotation |
|
25 | */ |
|
26 | private $valueAnnotation = []; |
|
27 | ||
28 | /** |
|
29 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType[] $typeAnnotation |
|
30 | */ |
|
31 | private $typeAnnotation = []; |
|
32 | ||
33 | /** |
|
34 | * Adds as documentation |
|
35 | * |
|
36 | * @return self |
|
37 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation |
|
38 | */ |
|
39 | public function addToDocumentation(TDocumentationType $documentation) |
|
40 | { |
|
41 | $this->documentation[] = $documentation; |
|
42 | return $this; |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * isset documentation |
|
47 | * |
|
48 | * @param scalar $index |
|
49 | * @return boolean |
|
50 | */ |
|
51 | public function issetDocumentation($index) |
|
52 | { |
|
53 | return isset($this->documentation[$index]); |
|
54 | } |
|
55 | ||
56 | /** |
|
57 | * unset documentation |
|
58 | * |
|
59 | * @param scalar $index |
|
60 | * @return void |
|
61 | */ |
|
62 | public function unsetDocumentation($index) |
|
63 | { |
|
64 | unset($this->documentation[$index]); |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * Gets as documentation |
|
69 | * |
|
70 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType[] |
|
71 | */ |
|
72 | public function getDocumentation() |
|
73 | { |
|
74 | return $this->documentation; |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * Sets a new documentation |
|
79 | * |
|
80 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType[] $documentation |
|
81 | * @return self |
|
82 | */ |
|
83 | public function setDocumentation(array $documentation) |
|
84 | { |
|
85 | $this->documentation = $documentation; |
|
86 | return $this; |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Adds as valueAnnotation |
|
91 | * |
|
92 | * @return self |
|
93 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType $valueAnnotation |
|
94 | */ |
|
95 | public function addToValueAnnotation(TValueAnnotationType $valueAnnotation) |
|
96 | { |
|
97 | $this->valueAnnotation[] = $valueAnnotation; |
|
98 | return $this; |
|
99 | } |
|
100 | ||
101 | /** |
|
102 | * isset valueAnnotation |
|
103 | * |
|
104 | * @param scalar $index |
|
105 | * @return boolean |
|
106 | */ |
|
107 | public function issetValueAnnotation($index) |
|
108 | { |
|
109 | return isset($this->valueAnnotation[$index]); |
|
110 | } |
|
111 | ||
112 | /** |
|
113 | * unset valueAnnotation |
|
114 | * |
|
115 | * @param scalar $index |
|
116 | * @return void |
|
117 | */ |
|
118 | public function unsetValueAnnotation($index) |
|
119 | { |
|
120 | unset($this->valueAnnotation[$index]); |
|
121 | } |
|
122 | ||
123 | /** |
|
124 | * Gets as valueAnnotation |
|
125 | * |
|
126 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType[] |
|
127 | */ |
|
128 | public function getValueAnnotation() |
|
129 | { |
|
130 | return $this->valueAnnotation; |
|
131 | } |
|
132 | ||
133 | /** |
|
134 | * Sets a new valueAnnotation |
|
135 | * |
|
136 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType[] $valueAnnotation |
|
137 | * @return self |
|
138 | */ |
|
139 | public function setValueAnnotation(array $valueAnnotation) |
|
140 | { |
|
141 | $this->valueAnnotation = $valueAnnotation; |
|
142 | return $this; |
|
143 | } |
|
144 | ||
145 | /** |
|
146 | * Adds as typeAnnotation |
|
147 | * |
|
148 | * @return self |
|
149 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType $typeAnnotation |
|
150 | */ |
|
151 | public function addToTypeAnnotation(TTypeAnnotationType $typeAnnotation) |
|
152 | { |
|
153 | $this->typeAnnotation[] = $typeAnnotation; |
|
154 | return $this; |
|
155 | } |
|
156 | ||
157 | /** |
|
158 | * isset typeAnnotation |
|
159 | * |
|
160 | * @param scalar $index |
|
161 | * @return boolean |
|
162 | */ |
|
163 | public function issetTypeAnnotation($index) |
|
164 | { |
|
165 | return isset($this->typeAnnotation[$index]); |
|
166 | } |
|
167 | ||
168 | /** |
|
169 | * unset typeAnnotation |
|
170 | * |
|
171 | * @param scalar $index |
|
172 | * @return void |
|
173 | */ |
|
174 | public function unsetTypeAnnotation($index) |
|
175 | { |
|
176 | unset($this->typeAnnotation[$index]); |
|
177 | } |
|
178 | ||
179 | /** |
|
180 | * Gets as typeAnnotation |
|
181 | * |
|
182 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType[] |
|
183 | */ |
|
184 | public function getTypeAnnotation() |
|
185 | { |
|
186 | return $this->typeAnnotation; |
|
187 | } |
|
188 | ||
189 | /** |
|
190 | * Sets a new typeAnnotation |
|
191 | * |
|
192 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType[] $typeAnnotation |
|
193 | * @return self |
|
194 | */ |
|
195 | public function setTypeAnnotation(array $typeAnnotation) |
|
196 | { |
|
197 | $this->typeAnnotation = $typeAnnotation; |
|
198 | return $this; |
|
199 | } |
|
200 | ||
201 | public function isOK(&$msg = null) |
|
202 | { |
|
203 | if (!$this->isTEntitySetAttributesOK($msg)) { |
|
204 | return false; |
|
205 | } |
|
206 | return true; |
|
207 | } |
|
208 | } |
|
209 |
@@ 14-208 (lines=195) @@ | ||
11 | * |
|
12 | * XSD Type: TComplexTypeProperty |
|
13 | */ |
|
14 | class TComplexTypePropertyType extends IsOK |
|
15 | { |
|
16 | use TCommonPropertyAttributesTrait; |
|
17 | ||
18 | /** |
|
19 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType[] $documentation |
|
20 | */ |
|
21 | private $documentation = []; |
|
22 | ||
23 | /** |
|
24 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType[] $valueAnnotation |
|
25 | */ |
|
26 | private $valueAnnotation = []; |
|
27 | ||
28 | /** |
|
29 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType[] $typeAnnotation |
|
30 | */ |
|
31 | private $typeAnnotation = []; |
|
32 | ||
33 | /** |
|
34 | * Adds as documentation |
|
35 | * |
|
36 | * @return self |
|
37 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation |
|
38 | */ |
|
39 | public function addToDocumentation(TDocumentationType $documentation) |
|
40 | { |
|
41 | $this->documentation[] = $documentation; |
|
42 | return $this; |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * isset documentation |
|
47 | * |
|
48 | * @param scalar $index |
|
49 | * @return boolean |
|
50 | */ |
|
51 | public function issetDocumentation($index) |
|
52 | { |
|
53 | return isset($this->documentation[$index]); |
|
54 | } |
|
55 | ||
56 | /** |
|
57 | * unset documentation |
|
58 | * |
|
59 | * @param scalar $index |
|
60 | * @return void |
|
61 | */ |
|
62 | public function unsetDocumentation($index) |
|
63 | { |
|
64 | unset($this->documentation[$index]); |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * Gets as documentation |
|
69 | * |
|
70 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType[] |
|
71 | */ |
|
72 | public function getDocumentation() |
|
73 | { |
|
74 | return $this->documentation; |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * Sets a new documentation |
|
79 | * |
|
80 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType[] $documentation |
|
81 | * @return self |
|
82 | */ |
|
83 | public function setDocumentation(array $documentation) |
|
84 | { |
|
85 | $this->documentation = $documentation; |
|
86 | return $this; |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Adds as valueAnnotation |
|
91 | * |
|
92 | * @return self |
|
93 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType $valueAnnotation |
|
94 | */ |
|
95 | public function addToValueAnnotation(TValueAnnotationType $valueAnnotation) |
|
96 | { |
|
97 | $this->valueAnnotation[] = $valueAnnotation; |
|
98 | return $this; |
|
99 | } |
|
100 | ||
101 | /** |
|
102 | * isset valueAnnotation |
|
103 | * |
|
104 | * @param scalar $index |
|
105 | * @return boolean |
|
106 | */ |
|
107 | public function issetValueAnnotation($index) |
|
108 | { |
|
109 | return isset($this->valueAnnotation[$index]); |
|
110 | } |
|
111 | ||
112 | /** |
|
113 | * unset valueAnnotation |
|
114 | * |
|
115 | * @param scalar $index |
|
116 | * @return void |
|
117 | */ |
|
118 | public function unsetValueAnnotation($index) |
|
119 | { |
|
120 | unset($this->valueAnnotation[$index]); |
|
121 | } |
|
122 | ||
123 | /** |
|
124 | * Gets as valueAnnotation |
|
125 | * |
|
126 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType[] |
|
127 | */ |
|
128 | public function getValueAnnotation() |
|
129 | { |
|
130 | return $this->valueAnnotation; |
|
131 | } |
|
132 | ||
133 | /** |
|
134 | * Sets a new valueAnnotation |
|
135 | * |
|
136 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType[] $valueAnnotation |
|
137 | * @return self |
|
138 | */ |
|
139 | public function setValueAnnotation(array $valueAnnotation) |
|
140 | { |
|
141 | $this->valueAnnotation = $valueAnnotation; |
|
142 | return $this; |
|
143 | } |
|
144 | ||
145 | /** |
|
146 | * Adds as typeAnnotation |
|
147 | * |
|
148 | * @return self |
|
149 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType $typeAnnotation |
|
150 | */ |
|
151 | public function addToTypeAnnotation(TTypeAnnotationType $typeAnnotation) |
|
152 | { |
|
153 | $this->typeAnnotation[] = $typeAnnotation; |
|
154 | return $this; |
|
155 | } |
|
156 | ||
157 | /** |
|
158 | * isset typeAnnotation |
|
159 | * |
|
160 | * @param scalar $index |
|
161 | * @return boolean |
|
162 | */ |
|
163 | public function issetTypeAnnotation($index) |
|
164 | { |
|
165 | return isset($this->typeAnnotation[$index]); |
|
166 | } |
|
167 | ||
168 | /** |
|
169 | * unset typeAnnotation |
|
170 | * |
|
171 | * @param scalar $index |
|
172 | * @return void |
|
173 | */ |
|
174 | public function unsetTypeAnnotation($index) |
|
175 | { |
|
176 | unset($this->typeAnnotation[$index]); |
|
177 | } |
|
178 | ||
179 | /** |
|
180 | * Gets as typeAnnotation |
|
181 | * |
|
182 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType[] |
|
183 | */ |
|
184 | public function getTypeAnnotation() |
|
185 | { |
|
186 | return $this->typeAnnotation; |
|
187 | } |
|
188 | ||
189 | /** |
|
190 | * Sets a new typeAnnotation |
|
191 | * |
|
192 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType[] $typeAnnotation |
|
193 | * @return self |
|
194 | */ |
|
195 | public function setTypeAnnotation(array $typeAnnotation) |
|
196 | { |
|
197 | $this->typeAnnotation = $typeAnnotation; |
|
198 | return $this; |
|
199 | } |
|
200 | ||
201 | public function isOK(&$msg = null) |
|
202 | { |
|
203 | if (!$this->isTCommonPropertyAttributesValid($msg)) { |
|
204 | return false; |
|
205 | } |
|
206 | return true; |
|
207 | } |
|
208 | } |
|
209 |