elasticsearch_search_api-1.0.x-dev/src/Search/Facet/FacetValueInterface.php
src/Search/Facet/FacetValueInterface.php
<?php
namespace Drupal\elasticsearch_search_api\Search\Facet;
/**
* Interface for facet values.
*/
interface FacetValueInterface {
/**
* Whether this value matches another one.
*
* @param \Drupal\elasticsearch_search_api\Search\Facet\FacetValueInterface $other
* Other facet value to compare with.
*
* @return bool
* Wether it matches or not.
*/
public function matches(FacetValueInterface $other): bool;
/**
* Get the value as a string.
*
* @return string
* The value as a string.
*/
public function value(): string;
}
