commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Subscription
PayloadNotIncludedModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Subscription
;
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
PayloadNotIncludedModel
extends
JsonObjectModel
implements
PayloadNotIncluded
21
{
26
protected
$reason
;
27
32
protected
$payloadType
;
33
34
38
public
function
__construct
(
39
?
string
$reason
=
null
,
40
?
string
$payloadType
=
null
41
) {
42
$this->reason =
$reason
;
43
$this->payloadType =
$payloadType
;
44
}
45
52
public
function
getReason
()
53
{
54
if
(is_null($this->reason)) {
56
$data = $this->
raw
(self::FIELD_REASON);
57
if
(is_null($data)) {
58
return
null
;
59
}
60
$this->reason = (string) $data;
61
}
62
63
return
$this->reason
;
64
}
65
72
public
function
getPayloadType
()
73
{
74
if
(is_null($this->payloadType)) {
76
$data = $this->
raw
(self::FIELD_PAYLOAD_TYPE);
77
if
(is_null($data)) {
78
return
null
;
79
}
80
$this->payloadType = (string) $data;
81
}
82
83
return
$this->payloadType
;
84
}
85
86
90
public
function
setReason
(?
string
$reason
): void
91
{
92
$this->reason =
$reason
;
93
}
94
98
public
function
setPayloadType
(?
string
$payloadType
): void
99
{
100
$this->payloadType =
$payloadType
;
101
}
102
}
Commercetools\Api\Models\Subscription\PayloadNotIncludedModel
Definition:
PayloadNotIncludedModel.php:21
Commercetools\Api\Models\Subscription\PayloadNotIncludedModel\getReason
getReason()
Definition:
PayloadNotIncludedModel.php:52
Commercetools\Api\Models\Subscription\PayloadNotIncludedModel\setReason
setReason(?string $reason)
Definition:
PayloadNotIncludedModel.php:90
Commercetools\Api\Models\Subscription\PayloadNotIncludedModel\getPayloadType
getPayloadType()
Definition:
PayloadNotIncludedModel.php:72
Commercetools\Api\Models\Subscription\PayloadNotIncludedModel\$reason
$reason
Definition:
PayloadNotIncludedModel.php:26
Commercetools\Api\Models\Subscription\PayloadNotIncludedModel\__construct
__construct(?string $reason=null, ?string $payloadType=null)
Definition:
PayloadNotIncludedModel.php:38
Commercetools\Api\Models\Subscription\PayloadNotIncludedModel\setPayloadType
setPayloadType(?string $payloadType)
Definition:
PayloadNotIncludedModel.php:98
Commercetools\Api\Models\Subscription\PayloadNotIncludedModel\$payloadType
$payloadType
Definition:
PayloadNotIncludedModel.php:32
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\Subscription\PayloadNotIncluded
Definition:
PayloadNotIncluded.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Subscription
Definition:
AzureEventGridDestination.php:9
Generated by
1.9.1