19 lines
426 B
PHP
19 lines
426 B
PHP
<?php
|
|
|
|
namespace FOQ\ElasticaBundle\Transformer;
|
|
|
|
/**
|
|
* Maps Elastica documents with model objects
|
|
*/
|
|
interface ElasticaToModelTransformerInterface
|
|
{
|
|
/**
|
|
* Transforms an array of elastica objects into an array of
|
|
* model objects fetched from the doctrine repository
|
|
*
|
|
* @param array of elastica objects
|
|
* @return array of model objects
|
|
**/
|
|
function transform(array $elasticaObjects);
|
|
}
|