| @@ 193-208 (lines=16) @@ | ||
| 190 | * |
|
| 191 | * @return ODataPropertyContent |
|
| 192 | */ |
|
| 193 | public function writeTopLevelComplexObject( |
|
| 194 | QueryResult &$complexValue, |
|
| 195 | $propertyName, |
|
| 196 | ResourceType & $resourceType |
|
| 197 | ) { |
|
| 198 | $propertyContent = new ODataPropertyContent(); |
|
| 199 | $this->writeComplexValue( |
|
| 200 | $complexValue->results, |
|
| 201 | $propertyName, |
|
| 202 | $resourceType, |
|
| 203 | null, |
|
| 204 | $propertyContent |
|
| 205 | ); |
|
| 206 | ||
| 207 | return $propertyContent; |
|
| 208 | } |
|
| 209 | ||
| 210 | /** |
|
| 211 | * Write top level bag resource. |
|
| @@ 219-234 (lines=16) @@ | ||
| 216 | * |
|
| 217 | * @return ODataPropertyContent |
|
| 218 | */ |
|
| 219 | public function writeTopLevelBagObject( |
|
| 220 | QueryResult &$BagValue, |
|
| 221 | $propertyName, |
|
| 222 | ResourceType &$resourceType |
|
| 223 | ) { |
|
| 224 | $propertyContent = new ODataPropertyContent(); |
|
| 225 | $this->writeBagValue( |
|
| 226 | $BagValue->results, |
|
| 227 | $propertyName, |
|
| 228 | $resourceType, |
|
| 229 | null, |
|
| 230 | $propertyContent |
|
| 231 | ); |
|
| 232 | ||
| 233 | return $propertyContent; |
|
| 234 | } |
|
| 235 | ||
| 236 | /** |
|
| 237 | * Write top level primitive value. |
|