commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Subscription
SubscriptionChangeDestinationActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Subscription
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
SubscriptionChangeDestinationActionBuilder
implements
Builder
22
{
27
private
$destination;
28
35
public
function
getDestination
()
36
{
37
return
$this->destination instanceof
DestinationBuilder
? $this->destination->
build
() : $this->destination;
38
}
39
44
public
function
withDestination
(?
Destination
$destination)
45
{
46
$this->destination = $destination;
47
48
return
$this;
49
}
50
55
public
function
withDestinationBuilder
(?
DestinationBuilder
$destination)
56
{
57
$this->destination = $destination;
58
59
return
$this;
60
}
61
62
public
function
build
():
SubscriptionChangeDestinationAction
63
{
64
return
new
SubscriptionChangeDestinationActionModel
(
65
$this->destination instanceof
DestinationBuilder
? $this->destination->
build
() : $this->destination
66
);
67
}
68
69
public
static
function
of
():
SubscriptionChangeDestinationActionBuilder
70
{
71
return
new
self
();
72
}
73
}
Commercetools\Api\Models\Subscription\DestinationBuilder
Definition:
DestinationBuilder.php:22
Commercetools\Api\Models\Subscription\DestinationBuilder\build
build()
Definition:
DestinationBuilder.php:23
Commercetools\Api\Models\Subscription\SubscriptionChangeDestinationActionBuilder
Definition:
SubscriptionChangeDestinationActionBuilder.php:22
Commercetools\Api\Models\Subscription\SubscriptionChangeDestinationActionBuilder\withDestinationBuilder
withDestinationBuilder(?DestinationBuilder $destination)
Definition:
SubscriptionChangeDestinationActionBuilder.php:55
Commercetools\Api\Models\Subscription\SubscriptionChangeDestinationActionBuilder\of
static of()
Definition:
SubscriptionChangeDestinationActionBuilder.php:69
Commercetools\Api\Models\Subscription\SubscriptionChangeDestinationActionBuilder\build
build()
Definition:
SubscriptionChangeDestinationActionBuilder.php:62
Commercetools\Api\Models\Subscription\SubscriptionChangeDestinationActionBuilder\withDestination
withDestination(?Destination $destination)
Definition:
SubscriptionChangeDestinationActionBuilder.php:44
Commercetools\Api\Models\Subscription\SubscriptionChangeDestinationActionBuilder\getDestination
getDestination()
Definition:
SubscriptionChangeDestinationActionBuilder.php:35
Commercetools\Api\Models\Subscription\SubscriptionChangeDestinationActionModel
Definition:
SubscriptionChangeDestinationActionModel.php:21
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\Destination
Definition:
Destination.php:15
Commercetools\Api\Models\Subscription\SubscriptionChangeDestinationAction
Definition:
SubscriptionChangeDestinationAction.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Subscription
Definition:
AzureEventGridDestination.php:9
Generated by
1.9.1