commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ShippingMethodRemoveZoneActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
18use stdClass;
19
24{
29 private $zone;
30
38 public function getZone()
39 {
40 return $this->zone instanceof ZoneResourceIdentifierBuilder ? $this->zone->build() : $this->zone;
41 }
42
47 public function withZone(?ZoneResourceIdentifier $zone)
48 {
49 $this->zone = $zone;
50
51 return $this;
52 }
53
59 {
60 $this->zone = $zone;
61
62 return $this;
63 }
64
66 {
68 $this->zone instanceof ZoneResourceIdentifierBuilder ? $this->zone->build() : $this->zone
69 );
70 }
71
72 public static function of(): ShippingMethodRemoveZoneActionBuilder
73 {
74 return new self();
75 }
76}