Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace IQDEV\Search\Facet;
final class Facet
{
private FacetType $type;
private string $code;
private ?string $label = null;
public FacetItemCollection $items;
private int $position = 0;
public function __construct(FacetType $type, string $code)
{
$this->type = $type;
$this->code = $code;
$this->items = new FacetItemCollection();
}
public function getLabel(): ?string
{
return $this->label;
}
public function getType(): FacetType
{
return $this->type;
}
public function getCode(): string
{
return $this->code;
}
public function getPosition(): int
{
return $this->position;
}
}