Skip to content

Commit d5a9b7b

Browse files
committed
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.
1 parent 4af9f44 commit d5a9b7b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Transformer/HighlightableModelInterface.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
namespace FOS\ElasticaBundle\Transformer;
44

55
/**
6-
* Maps Elastica documents with model objects.
6+
* Indicates that the model should have elastica highlights injected.
77
*/
88
interface HighlightableModelInterface
99
{
10+
/**
11+
* Returns a unique identifier for the model.
12+
*
13+
* @return mixed
14+
*/
15+
public function getId();
16+
1017
/**
1118
* Set ElasticSearch highlight data.
1219
*

0 commit comments

Comments
 (0)