| @@ 262-267 (lines=6) @@ | ||
| 259 | if (null === $currentObject) { |
|
| 260 | $nextPageLink .= 'null, '; |
|
| 261 | break; |
|
| 262 | } elseif ($isLastSegment) { |
|
| 263 | $type = $subPathSegment->getInstanceType(); |
|
| 264 | assert($type instanceof IType, get_class($type)); |
|
| 265 | $value = $type->convertToOData($currentObject); |
|
| 266 | $nextPageLink .= $value . ', '; |
|
| 267 | } |
|
| 268 | } catch (\ReflectionException $reflectionException) { |
|
| 269 | throw ODataException::createInternalServerError( |
|
| 270 | Messages::internalSkipTokenInfoFailedToAccessOrInitializeProperty( |
|
| @@ 936-940 (lines=5) @@ | ||
| 933 | ||
| 934 | if ($nonNull && is_array($result)) { |
|
| 935 | $subProp->value = $this->writeBagValue($resource, $result); |
|
| 936 | } elseif ($resource instanceof ResourcePrimitiveType && $nonNull) { |
|
| 937 | $rType = $resource->getInstanceType(); |
|
| 938 | assert($rType instanceof IType, get_class($rType)); |
|
| 939 | $subProp->value = $this->primitiveToString($rType, $result); |
|
| 940 | } elseif ($resource instanceof ResourceComplexType && $nonNull) { |
|
| 941 | $subProp->value = $this->writeComplexValue($resource, $result, $flake->getName()); |
|
| 942 | } |
|
| 943 | $propertyContent->properties[$corn] = $subProp; |
|