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