commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Order
OrderSearchAndExpressionModel.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
OrderSearchAndExpressionModel
extends
JsonObjectModel
implements
OrderSearchAndExpression
21
{
26
protected
$and
;
27
28
32
public
function
__construct
(
33
?
OrderSearchQueryCollection
$and
=
null
34
) {
35
$this->and =
$and
;
36
}
37
42
public
function
getAnd
()
43
{
44
if
(is_null($this->and)) {
46
$data = $this->
raw
(self::FIELD_AND);
47
if
(is_null($data)) {
48
return
null
;
49
}
50
$this->and =
OrderSearchQueryCollection::fromArray
($data);
51
}
52
53
return
$this->and
;
54
}
55
56
60
public
function
setAnd
(?
OrderSearchQueryCollection
$and
): void
61
{
62
$this->and =
$and
;
63
}
64
}
Commercetools\Api\Models\Order\OrderSearchAndExpressionModel
Definition:
OrderSearchAndExpressionModel.php:21
Commercetools\Api\Models\Order\OrderSearchAndExpressionModel\getAnd
getAnd()
Definition:
OrderSearchAndExpressionModel.php:42
Commercetools\Api\Models\Order\OrderSearchAndExpressionModel\$and
$and
Definition:
OrderSearchAndExpressionModel.php:26
Commercetools\Api\Models\Order\OrderSearchAndExpressionModel\setAnd
setAnd(?OrderSearchQueryCollection $and)
Definition:
OrderSearchAndExpressionModel.php:60
Commercetools\Api\Models\Order\OrderSearchAndExpressionModel\__construct
__construct(?OrderSearchQueryCollection $and=null)
Definition:
OrderSearchAndExpressionModel.php:32
Commercetools\Api\Models\Order\OrderSearchQueryCollection
Definition:
OrderSearchQueryCollection.php:26
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition:
BaseJsonObject.php:57
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Base\MapperSequence\fromArray
static fromArray(array $data)
Definition:
MapperSequence.php:56
Commercetools\Api\Models\Order\OrderSearchAndExpression
Definition:
OrderSearchAndExpression.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Order
Definition:
CustomLineItemImportDraft.php:9
Generated by
1.9.1