commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Order
OrderSearchExactExpressionModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Order
;
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
OrderSearchExactExpressionModel
extends
JsonObjectModel
implements
OrderSearchExactExpression
21
{
26
protected
$exact
;
27
28
32
public
function
__construct
(
33
?
OrderSearchAnyValue
$exact
=
null
34
) {
35
$this->exact =
$exact
;
36
}
37
42
public
function
getExact
()
43
{
44
if
(is_null($this->exact)) {
46
$data = $this->
raw
(self::FIELD_EXACT);
47
if
(is_null($data)) {
48
return
null
;
49
}
50
51
$this->exact =
OrderSearchAnyValueModel::of
($data);
52
}
53
54
return
$this->exact
;
55
}
56
57
61
public
function
setExact
(?
OrderSearchAnyValue
$exact
): void
62
{
63
$this->exact =
$exact
;
64
}
65
}
Commercetools\Api\Models\Order\OrderSearchExactExpressionModel
Definition:
OrderSearchExactExpressionModel.php:21
Commercetools\Api\Models\Order\OrderSearchExactExpressionModel\$exact
$exact
Definition:
OrderSearchExactExpressionModel.php:26
Commercetools\Api\Models\Order\OrderSearchExactExpressionModel\getExact
getExact()
Definition:
OrderSearchExactExpressionModel.php:42
Commercetools\Api\Models\Order\OrderSearchExactExpressionModel\__construct
__construct(?OrderSearchAnyValue $exact=null)
Definition:
OrderSearchExactExpressionModel.php:32
Commercetools\Api\Models\Order\OrderSearchExactExpressionModel\setExact
setExact(?OrderSearchAnyValue $exact)
Definition:
OrderSearchExactExpressionModel.php:61
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\Order\OrderSearchAnyValue
Definition:
OrderSearchAnyValue.php:15
Commercetools\Api\Models\Order\OrderSearchExactExpression
Definition:
OrderSearchExactExpression.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Order
Definition:
CustomLineItemImportDraft.php:9
Generated by
1.9.1