|
@@ 181-184 (lines=4) @@
|
| 178 |
|
protected function getNestedTypeInArray(PropertyMetadata $item) |
| 179 |
|
{ |
| 180 |
|
if (isset($item->type['name']) && in_array($item->type['name'], array('array', 'ArrayCollection'))) { |
| 181 |
|
if (isset($item->type['params'][1]['name'])) { |
| 182 |
|
// E.g. array<string, MyNamespaceMyObject> |
| 183 |
|
return $item->type['params'][1]['name']; |
| 184 |
|
} |
| 185 |
|
if (isset($item->type['params'][0]['name'])) { |
| 186 |
|
// E.g. array<MyNamespaceMyObject> |
| 187 |
|
return $item->type['params'][0]['name']; |
|
@@ 185-188 (lines=4) @@
|
| 182 |
|
// E.g. array<string, MyNamespaceMyObject> |
| 183 |
|
return $item->type['params'][1]['name']; |
| 184 |
|
} |
| 185 |
|
if (isset($item->type['params'][0]['name'])) { |
| 186 |
|
// E.g. array<MyNamespaceMyObject> |
| 187 |
|
return $item->type['params'][0]['name']; |
| 188 |
|
} |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
return null; |