original_string: protected function serializeEmbeddedCollection(MapperInterface $mapper, array $collection)
      {
          $data = array();
          foreach ($collection as $object) {
              $data[] = $mapper->serialize($object);
          }
  
          return $data;
      }
code: protected function serializeEmbeddedCollection(MapperInterface $mapper, array $collection)
      {
          $data = array();
          foreach ($collection as $object) {
              $data[] = $mapper->serialize($object);
          }
  
          return $data;
      }
code_tokens: protected function serializeEmbeddedCollection ( MapperInterface $ mapper , array $ collection ) { $ data = array ( ) ; foreach ( $ collection as $ object ) { $ data [ ] = $ mapper -> serialize ( $ object ) ; } return $ data ; }
docstring: Serialize an embedded collection
  
  Return a collection of hydrated objects
  
  @param MapperInterface $mapper
  @param array           $collection
  
  @return array
docstring_tokens: Serialize an embedded collection