Example #1
0
 public function serializeCollection(VisitorInterface $visitor, VectorInterface $collection, array $type, Context $context)
 {
     // We change the base type, and pass through possible parameters.
     $type['name'] = 'array';
     return $visitor->visitArray($collection->toArray(), $type, $context);
 }