commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ShippingMethod
ShippingMethodChangeActiveActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ShippingMethod
;
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
ShippingMethodChangeActiveActionBuilder
implements
Builder
22
{
27
private
$active;
28
36
public
function
getActive
()
37
{
38
return
$this->active;
39
}
40
45
public
function
withActive
(?
bool
$active)
46
{
47
$this->active = $active;
48
49
return
$this;
50
}
51
52
53
public
function
build
():
ShippingMethodChangeActiveAction
54
{
55
return
new
ShippingMethodChangeActiveActionModel
(
56
$this->active
57
);
58
}
59
60
public
static
function
of
():
ShippingMethodChangeActiveActionBuilder
61
{
62
return
new
self
();
63
}
64
}
Commercetools\Api\Models\ShippingMethod\ShippingMethodChangeActiveActionBuilder
Definition:
ShippingMethodChangeActiveActionBuilder.php:22
Commercetools\Api\Models\ShippingMethod\ShippingMethodChangeActiveActionBuilder\withActive
withActive(?bool $active)
Definition:
ShippingMethodChangeActiveActionBuilder.php:45
Commercetools\Api\Models\ShippingMethod\ShippingMethodChangeActiveActionBuilder\build
build()
Definition:
ShippingMethodChangeActiveActionBuilder.php:53
Commercetools\Api\Models\ShippingMethod\ShippingMethodChangeActiveActionBuilder\getActive
getActive()
Definition:
ShippingMethodChangeActiveActionBuilder.php:36
Commercetools\Api\Models\ShippingMethod\ShippingMethodChangeActiveActionBuilder\of
static of()
Definition:
ShippingMethodChangeActiveActionBuilder.php:60
Commercetools\Api\Models\ShippingMethod\ShippingMethodChangeActiveActionModel
Definition:
ShippingMethodChangeActiveActionModel.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\ShippingMethod\ShippingMethodChangeActiveAction
Definition:
ShippingMethodChangeActiveAction.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ShippingMethod
Definition:
CartClassificationTier.php:9
Generated by
1.9.1