commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Subscription
ChangeSubscriptionModel.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
ChangeSubscriptionModel
extends
JsonObjectModel
implements
ChangeSubscription
21
{
26
protected
$resourceTypeId
;
27
28
32
public
function
__construct
(
33
?
string
$resourceTypeId
=
null
34
) {
35
$this->resourceTypeId =
$resourceTypeId
;
36
}
37
44
public
function
getResourceTypeId
()
45
{
46
if
(is_null($this->resourceTypeId)) {
48
$data = $this->
raw
(self::FIELD_RESOURCE_TYPE_ID);
49
if
(is_null($data)) {
50
return
null
;
51
}
52
$this->resourceTypeId = (string) $data;
53
}
54
55
return
$this->resourceTypeId
;
56
}
57
58
62
public
function
setResourceTypeId
(?
string
$resourceTypeId
): void
63
{
64
$this->resourceTypeId =
$resourceTypeId
;
65
}
66
}
Commercetools\Api\Models\Subscription\ChangeSubscriptionModel
Definition:
ChangeSubscriptionModel.php:21
Commercetools\Api\Models\Subscription\ChangeSubscriptionModel\setResourceTypeId
setResourceTypeId(?string $resourceTypeId)
Definition:
ChangeSubscriptionModel.php:62
Commercetools\Api\Models\Subscription\ChangeSubscriptionModel\__construct
__construct(?string $resourceTypeId=null)
Definition:
ChangeSubscriptionModel.php:32
Commercetools\Api\Models\Subscription\ChangeSubscriptionModel\$resourceTypeId
$resourceTypeId
Definition:
ChangeSubscriptionModel.php:26
Commercetools\Api\Models\Subscription\ChangeSubscriptionModel\getResourceTypeId
getResourceTypeId()
Definition:
ChangeSubscriptionModel.php:44
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\ChangeSubscription
Definition:
ChangeSubscription.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Subscription
Definition:
AzureEventGridDestination.php:9
Generated by
1.9.1