Lines: 100.00%
| Line | Hits | Source |
|---|---|---|
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Drupal\visitors\SiteSearch; | |
| 6 | ||
| 7 | /** | |
| 8 | * One detected site search. | |
| 9 | */ | |
| 10 | final class SiteSearchHit { | |
| 11 | ||
| 12 | /** | |
| 13 | * Constructs a site search hit. | |
| 14 | * | |
| 15 | * @param string $pluginId | |
| 16 | * The detector plugin id. | |
| 17 | * @param string $keyword | |
| 18 | * The search keyword. | |
| 19 | * @param int $page | |
| 20 | * The zero-based results page. | |
| 21 | * @param string $filters | |
| 22 | * The canonical filter string. | |
| 23 | */ | |
| 24 | public function __construct( | |
| 25 | public readonly string $pluginId, | |
| 26 | public readonly string $keyword, | |
| 27 | public readonly int $page, | |
| 28 | public readonly string $filters, | |
| 29 | 5 | ) {} |
| 30 | ||
| 31 | } |