Add MapperInterface with a doctrine implementation

This commit is contained in:
ornicar 2011-04-14 16:22:14 -07:00
commit 4ad7d9a525
2 changed files with 77 additions and 0 deletions

17
MapperInterface.php Normal file
View file

@ -0,0 +1,17 @@
<?php
namespace FOQ\ElasticaBundle;
/**
* Maps Elastica documents with persisted objects
*/
interface MapperInterface
{
/**
* Transforms an array of elastica objects into an array of
* model objects fetched from the doctrine repository
*
* @return array
**/
function fromElasticaObjects(array $elasticaObjects);
}