commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ChangeTargetPatternChangeValueBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
18
23{
28 private $triggerPattern;
29
34 private $targetPattern;
35
40 private $maxOccurrence;
41
46 private $selectionMode;
47
54 public function getTriggerPattern()
55 {
56 return $this->triggerPattern;
57 }
58
65 public function getTargetPattern()
66 {
67 return $this->targetPattern;
68 }
69
77 public function getMaxOccurrence()
78 {
79 return $this->maxOccurrence;
80 }
81
88 public function getSelectionMode()
89 {
90 return $this->selectionMode;
91 }
92
97 public function withTriggerPattern(?PatternComponentCollection $triggerPattern)
98 {
99 $this->triggerPattern = $triggerPattern;
100
101 return $this;
102 }
103
108 public function withTargetPattern(?PatternComponentCollection $targetPattern)
109 {
110 $this->targetPattern = $targetPattern;
111
112 return $this;
113 }
114
119 public function withMaxOccurrence(?int $maxOccurrence)
120 {
121 $this->maxOccurrence = $maxOccurrence;
122
123 return $this;
124 }
125
130 public function withSelectionMode(?string $selectionMode)
131 {
132 $this->selectionMode = $selectionMode;
133
134 return $this;
135 }
136
137
139 {
141 $this->triggerPattern,
142 $this->targetPattern,
143 $this->maxOccurrence,
144 $this->selectionMode
145 );
146 }
147
149 {
150 return new self();
151 }
152}