FOSElasticaBundle/Transformer/HighlightableModelInterface.php
Tim Nagel d5a9b7b235 Add missing method to HighlightableModelInterface.
This is not a BC break - the method has always been required and lacking the method would cause a fatal error.
2015-03-13 14:56:07 +11:00

24 lines
478 B
PHP

<?php
namespace FOS\ElasticaBundle\Transformer;
/**
* Indicates that the model should have elastica highlights injected.
*/
interface HighlightableModelInterface
{
/**
* Returns a unique identifier for the model.
*
* @return mixed
*/
public function getId();
/**
* Set ElasticSearch highlight data.
*
* @param array $highlights array of highlight strings
*/
public function setElasticHighlights(array $highlights);
}