src/Serializer.php
protected function serializeEmbedMany(EmbedMetadata $embedMeta, EmbedCollection $collection)
    {
        $serialized = [];
        foreach ($collection as $embed) {
            if (!$embed instanceof Embed) {
                continue;
            }
            $serialized[] = $this->serializeEmbedOne($embedMeta, $embed);
        }
        return $serialized;
    }
protected function serializeEmbedMany(EmbedMetadata $embedMeta, EmbedCollection $collection)
    {
        $serialized = [];
        foreach ($collection as $embed) {
            if (!$embed instanceof Embed) {
                continue;
            }
            $serialized[] = $this->serializeEmbedOne($embedMeta, $embed);
        }
        return $serialized;
    }
protected function serializeEmbedMany ( EmbedMetadata $ embedMeta , EmbedCollection $ collection ) { $ serialized = [ ] ; foreach ( $ collection as $ embed ) { if ( ! $ embed instanceof Embed ) { continue ; } $ serialized [ ] = $ this -> serializeEmbedOne ( $ embedMeta , $ embed ) ; } return $ serialized ; }
Serializes an embed many value.

@param   EmbedMetadata   $embedMeta
@param   EmbedCollection $embed
@return  array
Serializes an embed many value .