FOSElasticaBundle/Transformer/HighlightableModelInterface.php

24 lines
478 B
PHP
Raw Normal View History

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