|
@@ -111,6 +111,9 @@ discard block |
|
|
block discarded – undo |
|
111
|
111
|
return 'Xabbuh\XApi\Model\Activity' === $type || 'Xabbuh\XApi\Model\Object' === $type || 'Xabbuh\XApi\Model\StatementReference' === $type || 'Xabbuh\XApi\Model\SubStatement' === $type; |
|
112
|
112
|
} |
|
113
|
113
|
|
|
|
114
|
+ /** |
|
|
115
|
+ * @param string $format |
|
|
116
|
+ */ |
|
114
|
117
|
private function denormalizeActivity(array $data, $format = null, array $context = array()) |
|
115
|
118
|
{ |
|
116
|
119
|
$definition = null; |
|
@@ -122,6 +125,9 @@ discard block |
|
|
block discarded – undo |
|
122
|
125
|
return new Activity($data['id'], $definition); |
|
123
|
126
|
} |
|
124
|
127
|
|
|
|
128
|
+ /** |
|
|
129
|
+ * @param string $format |
|
|
130
|
+ */ |
|
125
|
131
|
private function denormalizeSubStatement(array $data, $format = null, array $context = array()) |
|
126
|
132
|
{ |
|
127
|
133
|
$actor = $this->denormalizeData($data['actor'], 'Xabbuh\XApi\Model\Actor', $format, $context); |
Please login to merge, or discard this patch.