| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | #[Package('core')] |
||
| 8 | class SearchFieldConfig |
||
| 9 | { |
||
| 10 | public function __construct( |
||
| 11 | private readonly string $field, |
||
| 12 | private readonly int $ranking, |
||
| 13 | private readonly bool $tokenize |
||
| 14 | ) { |
||
| 15 | } |
||
| 16 | |||
| 17 | public function tokenize(): bool |
||
| 18 | { |
||
| 19 | return $this->tokenize; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getRanking(): int |
||
| 23 | { |
||
| 24 | return $this->ranking; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getField(): string |
||
| 28 | { |
||
| 29 | return $this->field; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function isCustomField(): bool |
||
| 35 | } |
||
| 36 | } |
||
| 37 |