commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ProductSearchRequest.php
1<?php
2
3declare(strict_types=1);
10
15
17{
18 public const FIELD_QUERY = 'query';
19 public const FIELD_SORT = 'sort';
20 public const FIELD_LIMIT = 'limit';
21 public const FIELD_OFFSET = 'offset';
22 public const FIELD_MARK_MATCHING_VARIANTS = 'markMatchingVariants';
23 public const FIELD_PRODUCT_PROJECTION_PARAMETERS = 'productProjectionParameters';
24 public const FIELD_FACETS = 'facets';
25 public const FIELD_POST_FILTER = 'postFilter';
26
33 public function getQuery();
34
42 public function getSort();
43
50 public function getLimit();
51
58 public function getOffset();
59
66 public function getMarkMatchingVariants();
67
76
83 public function getFacets();
84
92 public function getPostFilter();
93
97 public function setQuery(?SearchQuery $query): void;
98
102 public function setSort(?SearchSortingCollection $sort): void;
103
107 public function setLimit(?int $limit): void;
108
112 public function setOffset(?int $offset): void;
113
117 public function setMarkMatchingVariants(?bool $markMatchingVariants): void;
118
122 public function setProductProjectionParameters(?ProductSearchProjectionParams $productProjectionParameters): void;
123
127 public function setFacets(?ProductSearchFacetExpressionCollection $facets): void;
128
132 public function setPostFilter(?SearchQuery $postFilter): void;
133}
setProductProjectionParameters(?ProductSearchProjectionParams $productProjectionParameters)
setFacets(?ProductSearchFacetExpressionCollection $facets)