This commit is contained in:
Tim Nagel 2015-03-12 21:20:00 +11:00
commit dd388e4b25
86 changed files with 535 additions and 483 deletions

View file

@ -3,16 +3,17 @@
namespace FOS\ElasticaBundle\Transformer;
/**
* Maps Elastica documents with model objects
* Maps Elastica documents with model objects.
*/
interface ModelToElasticaTransformerInterface
{
/**
* Transforms an object into an elastica object having the required keys
* 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
* @param array $fields the keys we want to have in the returned array
*
* @return \Elastica\Document
**/
function transform($object, array $fields);
public function transform($object, array $fields);
}