FOSElasticaBundle/Transformer/ElasticaToModelTransformerInterface.php
cevou cbe6071969 Code cleanup
- updated deprecated calls
- cleaned up PHPDoc comments
2013-03-02 12:23:44 +01:00

34 lines
793 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 $elasticaObjects array of elastica objects
* @return array of model objects
**/
function transform(array $elasticaObjects);
function hybridTransform(array $elasticaObjects);
/**
* Returns the object class used by the transformer.
*
* @return string
*/
function getObjectClass();
/**
* Returns the identifier field from the options
*
* @return string the identifier field
*/
function getIdentifierField();
}