* @author Timo Hund */ class AbstractOptionFacetItem extends AbstractFacetItem { /** * @var string */ protected $value = ''; /** * @param AbstractFacet $facet * @param string $label * @param string $value * @param int $documentCount * @param bool $selected * @param array $metrics */ public function __construct(AbstractFacet $facet, $label = '', $value = '', $documentCount = 0, $selected = false, $metrics = []) { $this->value = $value; parent::__construct($facet, $label, $documentCount, $selected, $metrics); } /** * @return string */ public function getValue() { return $this->value; } /** * @return string */ public function getUriValue() { return $this->getValue(); } /** * @return string */ public function getCollectionKey() { return $this->getValue(); } }