d5a9b7b235
This is not a BC break - the method has always been required and lacking the method would cause a fatal error.
24 lines
478 B
PHP
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);
|
|
}
|