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