src/Normalizer/ObjectNormalizer.php 1 location
|
@@ 66-68 (lines=3) @@
|
63 |
|
$data['result'] = $this->normalizeAttribute($result, $format, $context); |
64 |
|
} |
65 |
|
|
66 |
|
if (null !== $statementContext = $object->getContext()) { |
67 |
|
$data['context'] = $this->normalizeAttribute($statementContext, $format, $context); |
68 |
|
} |
69 |
|
|
70 |
|
return $data; |
71 |
|
} |
src/Normalizer/StatementNormalizer.php 1 location
|
@@ 62-64 (lines=3) @@
|
59 |
|
$data['stored'] = $this->normalizeAttribute($result, $format, $context); |
60 |
|
} |
61 |
|
|
62 |
|
if (null !== $object->getContext()) { |
63 |
|
$data['context'] = $this->normalizeAttribute($object->getContext(), $format, $context); |
64 |
|
} |
65 |
|
|
66 |
|
if (null !== $attachments = $object->getAttachments()) { |
67 |
|
$data['attachments'] = $this->normalizeAttribute($attachments, $format, $context); |