commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Extension
ExtensionTriggerBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Extension
;
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
ExtensionTriggerBuilder
implements
Builder
22
{
27
private
$resourceTypeId;
28
33
private
$actions;
34
39
private
$condition;
40
47
public
function
getResourceTypeId
()
48
{
49
return
$this->resourceTypeId;
50
}
51
58
public
function
getActions
()
59
{
60
return
$this->actions;
61
}
62
69
public
function
getCondition
()
70
{
71
return
$this->condition;
72
}
73
78
public
function
withResourceTypeId
(?
string
$resourceTypeId)
79
{
80
$this->resourceTypeId = $resourceTypeId;
81
82
return
$this;
83
}
84
89
public
function
withActions
(?array $actions)
90
{
91
$this->actions = $actions;
92
93
return
$this;
94
}
95
100
public
function
withCondition
(?
string
$condition)
101
{
102
$this->condition = $condition;
103
104
return
$this;
105
}
106
107
108
public
function
build
():
ExtensionTrigger
109
{
110
return
new
ExtensionTriggerModel
(
111
$this->resourceTypeId,
112
$this->actions,
113
$this->condition
114
);
115
}
116
117
public
static
function
of
():
ExtensionTriggerBuilder
118
{
119
return
new
self
();
120
}
121
}
Commercetools\Api\Models\Extension\ExtensionTriggerBuilder
Definition:
ExtensionTriggerBuilder.php:22
Commercetools\Api\Models\Extension\ExtensionTriggerBuilder\getActions
getActions()
Definition:
ExtensionTriggerBuilder.php:58
Commercetools\Api\Models\Extension\ExtensionTriggerBuilder\build
build()
Definition:
ExtensionTriggerBuilder.php:108
Commercetools\Api\Models\Extension\ExtensionTriggerBuilder\getResourceTypeId
getResourceTypeId()
Definition:
ExtensionTriggerBuilder.php:47
Commercetools\Api\Models\Extension\ExtensionTriggerBuilder\withActions
withActions(?array $actions)
Definition:
ExtensionTriggerBuilder.php:89
Commercetools\Api\Models\Extension\ExtensionTriggerBuilder\withCondition
withCondition(?string $condition)
Definition:
ExtensionTriggerBuilder.php:100
Commercetools\Api\Models\Extension\ExtensionTriggerBuilder\withResourceTypeId
withResourceTypeId(?string $resourceTypeId)
Definition:
ExtensionTriggerBuilder.php:78
Commercetools\Api\Models\Extension\ExtensionTriggerBuilder\getCondition
getCondition()
Definition:
ExtensionTriggerBuilder.php:69
Commercetools\Api\Models\Extension\ExtensionTriggerBuilder\of
static of()
Definition:
ExtensionTriggerBuilder.php:117
Commercetools\Api\Models\Extension\ExtensionTriggerModel
Definition:
ExtensionTriggerModel.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\Extension\ExtensionTrigger
Definition:
ExtensionTrigger.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Extension
Definition:
AuthorizationHeaderAuthentication.php:9
Generated by
1.9.1