commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Search
SearchWildCardExpressionModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Search
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use stdClass;
16
20
final
class
SearchWildCardExpressionModel
extends
JsonObjectModel
implements
SearchWildCardExpression
21
{
26
protected
$wildcard
;
27
28
32
public
function
__construct
(
33
?
SearchAnyValue
$wildcard
=
null
34
) {
35
$this->wildcard =
$wildcard
;
36
}
37
42
public
function
getWildcard
()
43
{
44
if
(is_null($this->wildcard)) {
46
$data = $this->
raw
(self::FIELD_WILDCARD);
47
if
(is_null($data)) {
48
return
null
;
49
}
50
51
$this->wildcard =
SearchAnyValueModel::of
($data);
52
}
53
54
return
$this->wildcard
;
55
}
56
57
61
public
function
setWildcard
(?
SearchAnyValue
$wildcard
): void
62
{
63
$this->wildcard =
$wildcard
;
64
}
65
}
Commercetools\Api\Models\Search\SearchWildCardExpressionModel
Definition:
SearchWildCardExpressionModel.php:21
Commercetools\Api\Models\Search\SearchWildCardExpressionModel\__construct
__construct(?SearchAnyValue $wildcard=null)
Definition:
SearchWildCardExpressionModel.php:32
Commercetools\Api\Models\Search\SearchWildCardExpressionModel\setWildcard
setWildcard(?SearchAnyValue $wildcard)
Definition:
SearchWildCardExpressionModel.php:61
Commercetools\Api\Models\Search\SearchWildCardExpressionModel\$wildcard
$wildcard
Definition:
SearchWildCardExpressionModel.php:26
Commercetools\Api\Models\Search\SearchWildCardExpressionModel\getWildcard
getWildcard()
Definition:
SearchWildCardExpressionModel.php:42
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition:
BaseJsonObject.php:57
Commercetools\Base\BaseJsonObject\of
static of($data=null)
Definition:
BaseJsonObject.php:26
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Search\SearchAnyValue
Definition:
SearchAnyValue.php:15
Commercetools\Api\Models\Search\SearchWildCardExpression
Definition:
SearchWildCardExpression.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Search
Definition:
SearchAndExpression.php:9
Generated by
1.9.1