@@ -96,6 +96,9 @@ discard block |
||
96 | 96 | return 'Xabbuh\XApi\Model\Actor' === $type || 'Xabbuh\XApi\Model\Agent' === $type || 'Xabbuh\XApi\Model\Group' === $type; |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $format |
|
101 | + */ |
|
99 | 102 | private function normalizeInverseFunctionalIdentifier(InverseFunctionalIdentifier $iri = null, &$data, $format = null, array $context = array()) |
100 | 103 | { |
101 | 104 | if (null === $iri) { |
@@ -119,6 +122,9 @@ discard block |
||
119 | 122 | } |
120 | 123 | } |
121 | 124 | |
125 | + /** |
|
126 | + * @param string $format |
|
127 | + */ |
|
122 | 128 | private function denormalizeInverseFunctionalIdentifier($data, $format = null, array $context = array()) |
123 | 129 | { |
124 | 130 | if (isset($data['mbox'])) { |
@@ -138,6 +144,9 @@ discard block |
||
138 | 144 | } |
139 | 145 | } |
140 | 146 | |
147 | + /** |
|
148 | + * @return \Xabbuh\XApi\Model\Account |
|
149 | + */ |
|
141 | 150 | private function denormalizeAccount($data, $format = null, array $context = array()) |
142 | 151 | { |
143 | 152 | if (!isset($data['account'])) { |
@@ -147,6 +156,9 @@ discard block |
||
147 | 156 | return $this->denormalizeData($data['account'], 'Xabbuh\XApi\Model\Account', $format, $context); |
148 | 157 | } |
149 | 158 | |
159 | + /** |
|
160 | + * @param string $format |
|
161 | + */ |
|
150 | 162 | private function denormalizeGroup(InverseFunctionalIdentifier $iri = null, $name, $data, $format = null, array $context = array()) |
151 | 163 | { |
152 | 164 | $members = array(); |