File manager - Edit - /var/www/payraty/helpdesk/vendor/meilisearch/meilisearch-php/src/Contracts/FacetSearchQuery.php
Back
<?php declare(strict_types=1); namespace Meilisearch\Contracts; class FacetSearchQuery { private ?string $q = null; private ?string $matchingStrategy = null; private ?array $filter = null; private ?string $facetQuery = null; private ?string $facetName = null; public function setQuery(string $q): FacetSearchQuery { $this->q = $q; return $this; } public function setMatchingStrategy(string $matchingStrategy): FacetSearchQuery { $this->matchingStrategy = $matchingStrategy; return $this; } public function setFilter(array $filter): FacetSearchQuery { $this->filter = $filter; return $this; } public function setFacetQuery(string $facetQuery): FacetSearchQuery { $this->facetQuery = $facetQuery; return $this; } public function setFacetName(string $facetName): FacetSearchQuery { $this->facetName = $facetName; return $this; } public function toArray(): array { return array_filter([ 'q' => $this->q, 'matchingStrategy' => $this->matchingStrategy, 'filter' => $this->filter, 'facetQuery' => $this->facetQuery, 'facetName' => $this->facetName, ], function ($item) { return null !== $item; }); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings