@@ -105,6 +105,9 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | + /** |
|
| 109 | + * @param string $format |
|
| 110 | + */ |
|
| 108 | 111 | private function denormalizeInverseFunctionalIdentifier($data, $format = null, array $context = array()) |
| 109 | 112 | { |
| 110 | 113 | if (isset($data['mbox'])) { |
@@ -124,6 +127,9 @@ discard block |
||
| 124 | 127 | } |
| 125 | 128 | } |
| 126 | 129 | |
| 130 | + /** |
|
| 131 | + * @return \Xabbuh\XApi\Model\Account |
|
| 132 | + */ |
|
| 127 | 133 | private function denormalizeAccount($data, $format = null, array $context = array()) |
| 128 | 134 | { |
| 129 | 135 | if (!isset($data['account'])) { |
@@ -133,6 +139,9 @@ discard block |
||
| 133 | 139 | return $this->denormalizeData($data['account'], 'Xabbuh\XApi\Model\Account', $format, $context); |
| 134 | 140 | } |
| 135 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $format |
|
| 144 | + */ |
|
| 136 | 145 | private function denormalizeGroup(InverseFunctionalIdentifier $iri, $name, $data, $format = null, array $context = array()) |
| 137 | 146 | { |
| 138 | 147 | $members = array(); |
@@ -111,6 +111,9 @@ discard block |
||
| 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 |
||
| 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); |