commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Me
MyQuoteRequestCancelActionModel.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
MyQuoteRequestCancelActionModel
extends
JsonObjectModel
implements
MyQuoteRequestCancelAction
21
{
22
public
const
DISCRIMINATOR_VALUE
=
'cancelQuoteRequest'
;
27
protected
$action
;
28
29
33
public
function
__construct
(
34
?
string
$action
=
null
35
) {
36
$this->action =
$action
??
self::DISCRIMINATOR_VALUE
;
37
}
38
43
public
function
getAction
()
44
{
45
if
(is_null($this->action)) {
47
$data = $this->
raw
(self::FIELD_ACTION);
48
if
(is_null($data)) {
49
return
null
;
50
}
51
$this->action = (string) $data;
52
}
53
54
return
$this->action
;
55
}
56
}
Commercetools\Api\Models\Me\MyQuoteRequestCancelActionModel
Definition:
MyQuoteRequestCancelActionModel.php:21
Commercetools\Api\Models\Me\MyQuoteRequestCancelActionModel\__construct
__construct(?string $action=null)
Definition:
MyQuoteRequestCancelActionModel.php:33
Commercetools\Api\Models\Me\MyQuoteRequestCancelActionModel\DISCRIMINATOR_VALUE
const DISCRIMINATOR_VALUE
Definition:
MyQuoteRequestCancelActionModel.php:22
Commercetools\Api\Models\Me\MyQuoteRequestCancelActionModel\getAction
getAction()
Definition:
MyQuoteRequestCancelActionModel.php:43
Commercetools\Api\Models\Me\MyQuoteRequestCancelActionModel\$action
$action
Definition:
MyQuoteRequestCancelActionModel.php:27
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\MyQuoteRequestCancelAction
Definition:
MyQuoteRequestCancelAction.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Me
Definition:
MyBusinessUnitAddAddressAction.php:9
Generated by
1.9.1