| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 10 | class FacetCount |
||
| 11 | { |
||
| 12 | /** @var string|float|int|bool */ |
||
| 13 | private $key; |
||
| 14 | |||
| 15 | /** @var int */ |
||
| 16 | private $count; |
||
| 17 | |||
| 18 | |||
| 19 | /** |
||
| 20 | * FacetCount constructor. |
||
| 21 | * |
||
| 22 | * @param string|float|int|bool $key |
||
| 23 | */ |
||
| 24 | public function __construct($key, int $count) |
||
| 25 | { |
||
| 26 | $this->key = $key; |
||
| 27 | $this->count = $count; |
||
| 28 | } |
||
| 29 | |||
| 30 | |||
| 31 | /** @return string|float|int|bool */ |
||
| 32 | public function getKey() |
||
| 33 | { |
||
| 34 | return $this->key; |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | public function getCount(): int |
||
| 41 | } |
||
| 42 | } |
||
| 43 |