commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Message
OrderMessagePayloadModel.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
OrderMessagePayloadModel
extends
JsonObjectModel
implements
OrderMessagePayload
21
{
26
protected
$type
;
27
28
32
public
function
__construct
(
33
?
string
$type
=
null
34
) {
35
$this->type =
$type
;
36
}
37
42
public
function
getType
()
43
{
44
if
(is_null($this->type)) {
46
$data = $this->
raw
(self::FIELD_TYPE);
47
if
(is_null($data)) {
48
return
null
;
49
}
50
$this->type = (string) $data;
51
}
52
53
return
$this->type
;
54
}
55
}
Commercetools\Api\Models\Message\OrderMessagePayloadModel
Definition:
OrderMessagePayloadModel.php:21
Commercetools\Api\Models\Message\OrderMessagePayloadModel\__construct
__construct(?string $type=null)
Definition:
OrderMessagePayloadModel.php:32
Commercetools\Api\Models\Message\OrderMessagePayloadModel\$type
$type
Definition:
OrderMessagePayloadModel.php:26
Commercetools\Api\Models\Message\OrderMessagePayloadModel\getType
getType()
Definition:
OrderMessagePayloadModel.php:42
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\OrderMessagePayload
Definition:
OrderMessagePayload.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Message
Definition:
ApprovalFlowApprovedMessage.php:9
Generated by
1.9.1