commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
State
StateSetTransitionsActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\State
;
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
StateSetTransitionsActionBuilder
implements
Builder
22
{
27
private
$transitions;
28
41
public
function
getTransitions
()
42
{
43
return
$this->transitions;
44
}
45
50
public
function
withTransitions
(?
StateResourceIdentifierCollection
$transitions)
51
{
52
$this->transitions = $transitions;
53
54
return
$this;
55
}
56
57
58
public
function
build
():
StateSetTransitionsAction
59
{
60
return
new
StateSetTransitionsActionModel
(
61
$this->transitions
62
);
63
}
64
65
public
static
function
of
():
StateSetTransitionsActionBuilder
66
{
67
return
new
self
();
68
}
69
}
Commercetools\Api\Models\State\StateResourceIdentifierCollection
Definition:
StateResourceIdentifierCollection.php:22
Commercetools\Api\Models\State\StateSetTransitionsActionBuilder
Definition:
StateSetTransitionsActionBuilder.php:22
Commercetools\Api\Models\State\StateSetTransitionsActionBuilder\getTransitions
getTransitions()
Definition:
StateSetTransitionsActionBuilder.php:41
Commercetools\Api\Models\State\StateSetTransitionsActionBuilder\withTransitions
withTransitions(?StateResourceIdentifierCollection $transitions)
Definition:
StateSetTransitionsActionBuilder.php:50
Commercetools\Api\Models\State\StateSetTransitionsActionBuilder\of
static of()
Definition:
StateSetTransitionsActionBuilder.php:65
Commercetools\Api\Models\State\StateSetTransitionsActionBuilder\build
build()
Definition:
StateSetTransitionsActionBuilder.php:58
Commercetools\Api\Models\State\StateSetTransitionsActionModel
Definition:
StateSetTransitionsActionModel.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\State\StateSetTransitionsAction
Definition:
StateSetTransitionsAction.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\State
Definition:
State.php:9
Generated by
1.9.1