@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | /** |
124 | 124 | * @method |
125 | - * @param type $name |
|
125 | + * @param string $name |
|
126 | 126 | * @param type $arguments |
127 | 127 | * @return type |
128 | 128 | */ |
@@ -148,6 +148,10 @@ discard block |
||
148 | 148 | return $this->retrieveItem($name); |
149 | 149 | } |
150 | 150 | |
151 | + /** |
|
152 | + * @param Relationship[] $relationships |
|
153 | + * @param integer $depth |
|
154 | + */ |
|
151 | 155 | private function expandArrayValue($array, $relationships, $depth, $index = null) { |
152 | 156 | foreach ($relationships as $name => $relationship) { |
153 | 157 | $array[$name] = $this->fetchRelatedFields($relationship, $index)->toArray($depth); |