commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ZoneAddLocationActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
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(): ZoneAddLocationAction
63 {
65 $this->location instanceof LocationBuilder ? $this->location->build() : $this->location
66 );
67 }
68
69 public static function of(): ZoneAddLocationActionBuilder
70 {
71 return new self();
72 }
73}