commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ProductSearch
ProductSearchRequest.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ProductSearch
;
10
11
use
Commercetools\Api\Models\Search\SearchQuery
;
12
use
Commercetools\Api\Models\Search\SearchSortingCollection
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
16
interface
ProductSearchRequest
extends
JsonObject
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
75
public
function
getProductProjectionParameters
();
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
}
Commercetools\Api\Models\ProductSearch\ProductSearchFacetExpressionCollection
Definition:
ProductSearchFacetExpressionCollection.php:26
Commercetools\Api\Models\Search\SearchSortingCollection
Definition:
SearchSortingCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\ProductSearch\ProductSearchProjectionParams
Definition:
ProductSearchProjectionParams.php:15
Commercetools\Api\Models\ProductSearch\ProductSearchRequest
Definition:
ProductSearchRequest.php:17
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\getFacets
getFacets()
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\setPostFilter
setPostFilter(?SearchQuery $postFilter)
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\setOffset
setOffset(?int $offset)
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\setSort
setSort(?SearchSortingCollection $sort)
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\getLimit
getLimit()
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\FIELD_FACETS
const FIELD_FACETS
Definition:
ProductSearchRequest.php:24
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\getOffset
getOffset()
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\setProductProjectionParameters
setProductProjectionParameters(?ProductSearchProjectionParams $productProjectionParameters)
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\FIELD_PRODUCT_PROJECTION_PARAMETERS
const FIELD_PRODUCT_PROJECTION_PARAMETERS
Definition:
ProductSearchRequest.php:23
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\setFacets
setFacets(?ProductSearchFacetExpressionCollection $facets)
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\setMarkMatchingVariants
setMarkMatchingVariants(?bool $markMatchingVariants)
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\FIELD_SORT
const FIELD_SORT
Definition:
ProductSearchRequest.php:19
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\getQuery
getQuery()
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\getMarkMatchingVariants
getMarkMatchingVariants()
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\getPostFilter
getPostFilter()
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\setLimit
setLimit(?int $limit)
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\FIELD_POST_FILTER
const FIELD_POST_FILTER
Definition:
ProductSearchRequest.php:25
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\FIELD_MARK_MATCHING_VARIANTS
const FIELD_MARK_MATCHING_VARIANTS
Definition:
ProductSearchRequest.php:22
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\FIELD_LIMIT
const FIELD_LIMIT
Definition:
ProductSearchRequest.php:20
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\getProductProjectionParameters
getProductProjectionParameters()
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\getSort
getSort()
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\FIELD_OFFSET
const FIELD_OFFSET
Definition:
ProductSearchRequest.php:21
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\FIELD_QUERY
const FIELD_QUERY
Definition:
ProductSearchRequest.php:18
Commercetools\Api\Models\ProductSearch\ProductSearchRequest\setQuery
setQuery(?SearchQuery $query)
Commercetools\Api\Models\Search\SearchQuery
Definition:
SearchQuery.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ProductSearch
Definition:
ProductPagedSearchResponse.php:9
Generated by
1.9.1