commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Project
ProjectChangeCartsConfigurationActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Project
;
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
ProjectChangeCartsConfigurationActionBuilder
implements
Builder
22
{
27
private
$cartsConfiguration;
28
35
public
function
getCartsConfiguration
()
36
{
37
return
$this->cartsConfiguration instanceof
CartsConfigurationBuilder
? $this->cartsConfiguration->
build
() : $this->cartsConfiguration;
38
}
39
44
public
function
withCartsConfiguration
(?
CartsConfiguration
$cartsConfiguration)
45
{
46
$this->cartsConfiguration = $cartsConfiguration;
47
48
return
$this;
49
}
50
55
public
function
withCartsConfigurationBuilder
(?
CartsConfigurationBuilder
$cartsConfiguration)
56
{
57
$this->cartsConfiguration = $cartsConfiguration;
58
59
return
$this;
60
}
61
62
public
function
build
():
ProjectChangeCartsConfigurationAction
63
{
64
return
new
ProjectChangeCartsConfigurationActionModel
(
65
$this->cartsConfiguration instanceof
CartsConfigurationBuilder
? $this->cartsConfiguration->
build
() : $this->cartsConfiguration
66
);
67
}
68
69
public
static
function
of
():
ProjectChangeCartsConfigurationActionBuilder
70
{
71
return
new
self
();
72
}
73
}
Commercetools\Api\Models\Project\CartsConfigurationBuilder
Definition:
CartsConfigurationBuilder.php:22
Commercetools\Api\Models\Project\CartsConfigurationBuilder\build
build()
Definition:
CartsConfigurationBuilder.php:82
Commercetools\Api\Models\Project\ProjectChangeCartsConfigurationActionBuilder
Definition:
ProjectChangeCartsConfigurationActionBuilder.php:22
Commercetools\Api\Models\Project\ProjectChangeCartsConfigurationActionBuilder\getCartsConfiguration
getCartsConfiguration()
Definition:
ProjectChangeCartsConfigurationActionBuilder.php:35
Commercetools\Api\Models\Project\ProjectChangeCartsConfigurationActionBuilder\build
build()
Definition:
ProjectChangeCartsConfigurationActionBuilder.php:62
Commercetools\Api\Models\Project\ProjectChangeCartsConfigurationActionBuilder\withCartsConfiguration
withCartsConfiguration(?CartsConfiguration $cartsConfiguration)
Definition:
ProjectChangeCartsConfigurationActionBuilder.php:44
Commercetools\Api\Models\Project\ProjectChangeCartsConfigurationActionBuilder\withCartsConfigurationBuilder
withCartsConfigurationBuilder(?CartsConfigurationBuilder $cartsConfiguration)
Definition:
ProjectChangeCartsConfigurationActionBuilder.php:55
Commercetools\Api\Models\Project\ProjectChangeCartsConfigurationActionBuilder\of
static of()
Definition:
ProjectChangeCartsConfigurationActionBuilder.php:69
Commercetools\Api\Models\Project\ProjectChangeCartsConfigurationActionModel
Definition:
ProjectChangeCartsConfigurationActionModel.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\Project\CartsConfiguration
Definition:
CartsConfiguration.php:15
Commercetools\Api\Models\Project\ProjectChangeCartsConfigurationAction
Definition:
ProjectChangeCartsConfigurationAction.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Project
Definition:
BusinessUnitConfiguration.php:9
Generated by
1.9.1