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

18 lines
463 B
PHP

<?php
namespace FOQ\ElasticaBundle\Transformer;
/**
* Maps Elastica documents with model objects
*/
interface ModelToElasticaTransformerInterface
{
/**
* Transforms an object into an elastica object having the required keys
*
* @param object $object the object to convert
* @param array $fields the keys we want to have in the returned array
* @return \Elastica_Document
**/
function transform($object, array $fields);
}