commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
AddExternalImageChangeBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
18
23{
28 private $change;
29
34 private $previousValue;
35
40 private $nextValue;
41
46 private $catalogData;
47
52 public function getChange()
53 {
54 return $this->change;
55 }
56
63 public function getPreviousValue()
64 {
65 return $this->previousValue;
66 }
67
74 public function getNextValue()
75 {
76 return $this->nextValue;
77 }
78
88 public function getCatalogData()
89 {
90 return $this->catalogData;
91 }
92
97 public function withChange(?string $change)
98 {
99 $this->change = $change;
100
101 return $this;
102 }
103
108 public function withPreviousValue(?ImageCollection $previousValue)
109 {
110 $this->previousValue = $previousValue;
111
112 return $this;
113 }
114
119 public function withNextValue(?ImageCollection $nextValue)
120 {
121 $this->nextValue = $nextValue;
122
123 return $this;
124 }
125
130 public function withCatalogData(?string $catalogData)
131 {
132 $this->catalogData = $catalogData;
133
134 return $this;
135 }
136
137
138 public function build(): AddExternalImageChange
139 {
141 $this->change,
142 $this->previousValue,
143 $this->nextValue,
144 $this->catalogData
145 );
146 }
147
148 public static function of(): AddExternalImageChangeBuilder
149 {
150 return new self();
151 }
152}