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,32 +3,33 @@
namespace FOS\ElasticaBundle\Transformer;
/**
* Maps Elastica documents with model objects
* 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
* model objects fetched from the doctrine repository.
*
* @param array $elasticaObjects array of elastica objects
*
* @return array of model objects
**/
function transform(array $elasticaObjects);
public function transform(array $elasticaObjects);
function hybridTransform(array $elasticaObjects);
public function hybridTransform(array $elasticaObjects);
/**
* Returns the object class used by the transformer.
*
* @return string
*/
function getObjectClass();
public function getObjectClass();
/**
* Returns the identifier field from the options
* Returns the identifier field from the options.
*
* @return string the identifier field
*/
function getIdentifierField();
public function getIdentifierField();
}