commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Me
MyQuoteRequestDraftModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Me
;
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
MyQuoteRequestDraftModel
extends
JsonObjectModel
implements
MyQuoteRequestDraft
21
{
26
protected
$cartId
;
27
32
protected
$cartVersion
;
33
38
protected
$comment
;
39
40
44
public
function
__construct
(
45
?
string
$cartId
=
null
,
46
?
int
$cartVersion
=
null
,
47
?
string
$comment
=
null
48
) {
49
$this->cartId =
$cartId
;
50
$this->cartVersion =
$cartVersion
;
51
$this->comment =
$comment
;
52
}
53
61
public
function
getCartId
()
62
{
63
if
(is_null($this->cartId)) {
65
$data = $this->
raw
(self::FIELD_CART_ID);
66
if
(is_null($data)) {
67
return
null
;
68
}
69
$this->cartId = (string) $data;
70
}
71
72
return
$this->cartId
;
73
}
74
81
public
function
getCartVersion
()
82
{
83
if
(is_null($this->cartVersion)) {
85
$data = $this->
raw
(self::FIELD_CART_VERSION);
86
if
(is_null($data)) {
87
return
null
;
88
}
89
$this->cartVersion = (int) $data;
90
}
91
92
return
$this->cartVersion
;
93
}
94
101
public
function
getComment
()
102
{
103
if
(is_null($this->comment)) {
105
$data = $this->
raw
(self::FIELD_COMMENT);
106
if
(is_null($data)) {
107
return
null
;
108
}
109
$this->comment = (string) $data;
110
}
111
112
return
$this->comment
;
113
}
114
115
119
public
function
setCartId
(?
string
$cartId
): void
120
{
121
$this->cartId =
$cartId
;
122
}
123
127
public
function
setCartVersion
(?
int
$cartVersion
): void
128
{
129
$this->cartVersion =
$cartVersion
;
130
}
131
135
public
function
setComment
(?
string
$comment
): void
136
{
137
$this->comment =
$comment
;
138
}
139
}
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel
Definition
MyQuoteRequestDraftModel.php:21
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel\__construct
__construct(?string $cartId=null, ?int $cartVersion=null, ?string $comment=null)
Definition
MyQuoteRequestDraftModel.php:44
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel\getCartVersion
getCartVersion()
Definition
MyQuoteRequestDraftModel.php:81
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel\getCartId
getCartId()
Definition
MyQuoteRequestDraftModel.php:61
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel\$comment
$comment
Definition
MyQuoteRequestDraftModel.php:38
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel\setCartId
setCartId(?string $cartId)
Definition
MyQuoteRequestDraftModel.php:119
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel\$cartId
$cartId
Definition
MyQuoteRequestDraftModel.php:26
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel\$cartVersion
$cartVersion
Definition
MyQuoteRequestDraftModel.php:32
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel\setCartVersion
setCartVersion(?int $cartVersion)
Definition
MyQuoteRequestDraftModel.php:127
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel\getComment
getComment()
Definition
MyQuoteRequestDraftModel.php:101
Commercetools\Api\Models\Me\MyQuoteRequestDraftModel\setComment
setComment(?string $comment)
Definition
MyQuoteRequestDraftModel.php:135
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\Api\Models\Me\MyQuoteRequestDraft
Definition
MyQuoteRequestDraft.php:15
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Me
Definition
MyBusinessUnitAddAddressAction.php:9
Generated by
1.9.8