commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantBulkUpdateSuccessResultBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $id;
28
33 private $key;
34
39 private $resource;
40
47 public function getId()
48 {
49 return $this->id;
50 }
51
58 public function getKey()
59 {
60 return $this->key;
61 }
62
69 public function getResource()
70 {
71 return $this->resource instanceof VariantBulkUpdateResourceBuilder ? $this->resource->build() : $this->resource;
72 }
73
78 public function withId(?string $id)
79 {
80 $this->id = $id;
81
82 return $this;
83 }
84
89 public function withKey(?string $key)
90 {
91 $this->key = $key;
92
93 return $this;
94 }
95
100 public function withResource(?VariantBulkUpdateResource $resource)
101 {
102 $this->resource = $resource;
103
104 return $this;
105 }
106
112 {
113 $this->resource = $resource;
114
115 return $this;
116 }
117
119 {
121 $this->id,
122 $this->key,
123 $this->resource instanceof VariantBulkUpdateResourceBuilder ? $this->resource->build() : $this->resource
124 );
125 }
126
128 {
129 return new self();
130 }
131}