FOSElasticaBundle/Transformer/ElasticaToModelTransformerInterface.php

28 lines
615 B
PHP
Raw Normal View History

<?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);
2012-02-23 23:50:46 +01:00
function hybridTransform(array $elasticaObjects);
/**
* Returns the object class used by the transformer.
*
* @return string
*/
function getObjectClass();
}