Skip to content

Commit 4171ad4

Browse files
committed
Fix for facet value types. Add support for facet value name
1 parent 43e4352 commit 4171ad4

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/Service/Results/FacetData.php

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class FacetData extends ViewableData
1313

1414
private string|int|float $to;
1515

16-
private string $value;
16+
private string $name;
17+
18+
private string|int|float $value;
1719

1820
public function getCount(): int
1921
{
@@ -51,12 +53,24 @@ public function setTo(float|int|string $to): self
5153
return $this;
5254
}
5355

54-
public function getValue(): string
56+
public function getName(): string
57+
{
58+
return $this->name;
59+
}
60+
61+
public function setName(string $name): self
62+
{
63+
$this->name = $name;
64+
65+
return $this;
66+
}
67+
68+
public function getValue(): string|int|float
5569
{
5670
return $this->value;
5771
}
5872

59-
public function setValue(string $value): self
73+
public function setValue(string|int|float $value): self
6074
{
6175
$this->value = $value;
6276

0 commit comments

Comments
 (0)