commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Message
MessagesConfigurationBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Message
;
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
MessagesConfigurationBuilder
implements
Builder
22
{
27
private
$enabled;
28
33
private
$deleteDaysAfterCreation;
34
41
public
function
getEnabled
()
42
{
43
return
$this->enabled;
44
}
45
54
public
function
getDeleteDaysAfterCreation
()
55
{
56
return
$this->deleteDaysAfterCreation;
57
}
58
63
public
function
withEnabled
(?
bool
$enabled)
64
{
65
$this->enabled = $enabled;
66
67
return
$this;
68
}
69
74
public
function
withDeleteDaysAfterCreation
(?
int
$deleteDaysAfterCreation)
75
{
76
$this->deleteDaysAfterCreation = $deleteDaysAfterCreation;
77
78
return
$this;
79
}
80
81
82
public
function
build
():
MessagesConfiguration
83
{
84
return
new
MessagesConfigurationModel
(
85
$this->enabled,
86
$this->deleteDaysAfterCreation
87
);
88
}
89
90
public
static
function
of
():
MessagesConfigurationBuilder
91
{
92
return
new
self
();
93
}
94
}
Commercetools\Api\Models\Message\MessagesConfigurationBuilder
Definition:
MessagesConfigurationBuilder.php:22
Commercetools\Api\Models\Message\MessagesConfigurationBuilder\withDeleteDaysAfterCreation
withDeleteDaysAfterCreation(?int $deleteDaysAfterCreation)
Definition:
MessagesConfigurationBuilder.php:74
Commercetools\Api\Models\Message\MessagesConfigurationBuilder\build
build()
Definition:
MessagesConfigurationBuilder.php:82
Commercetools\Api\Models\Message\MessagesConfigurationBuilder\of
static of()
Definition:
MessagesConfigurationBuilder.php:90
Commercetools\Api\Models\Message\MessagesConfigurationBuilder\getEnabled
getEnabled()
Definition:
MessagesConfigurationBuilder.php:41
Commercetools\Api\Models\Message\MessagesConfigurationBuilder\getDeleteDaysAfterCreation
getDeleteDaysAfterCreation()
Definition:
MessagesConfigurationBuilder.php:54
Commercetools\Api\Models\Message\MessagesConfigurationBuilder\withEnabled
withEnabled(?bool $enabled)
Definition:
MessagesConfigurationBuilder.php:63
Commercetools\Api\Models\Message\MessagesConfigurationModel
Definition:
MessagesConfigurationModel.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\Message\MessagesConfiguration
Definition:
MessagesConfiguration.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Message
Definition:
ApprovalFlowApprovedMessage.php:9
Generated by
1.9.1