commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Message
AssociateRoleDeletedMessagePayloadModel.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
AssociateRoleDeletedMessagePayloadModel
extends
JsonObjectModel
implements
AssociateRoleDeletedMessagePayload
21
{
22
public
const
DISCRIMINATOR_VALUE
=
'AssociateRoleDeleted'
;
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\AssociateRoleDeletedMessagePayloadModel
Definition:
AssociateRoleDeletedMessagePayloadModel.php:21
Commercetools\Api\Models\Message\AssociateRoleDeletedMessagePayloadModel\__construct
__construct(?string $type=null)
Definition:
AssociateRoleDeletedMessagePayloadModel.php:33
Commercetools\Api\Models\Message\AssociateRoleDeletedMessagePayloadModel\$type
$type
Definition:
AssociateRoleDeletedMessagePayloadModel.php:27
Commercetools\Api\Models\Message\AssociateRoleDeletedMessagePayloadModel\DISCRIMINATOR_VALUE
const DISCRIMINATOR_VALUE
Definition:
AssociateRoleDeletedMessagePayloadModel.php:22
Commercetools\Api\Models\Message\AssociateRoleDeletedMessagePayloadModel\getType
getType()
Definition:
AssociateRoleDeletedMessagePayloadModel.php:43
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\AssociateRoleDeletedMessagePayload
Definition:
AssociateRoleDeletedMessagePayload.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Message
Definition:
ApprovalFlowApprovedMessage.php:9
Generated by
1.9.1