commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ProductDiscount.php
1<?php
2
3declare(strict_types=1);
10
18use DateTimeImmutable;
19
21{
22 public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
23 public const FIELD_CREATED_BY = 'createdBy';
24 public const FIELD_NAME = 'name';
25 public const FIELD_KEY = 'key';
26 public const FIELD_DESCRIPTION = 'description';
27 public const FIELD_VALUE = 'value';
28 public const FIELD_PREDICATE = 'predicate';
29 public const FIELD_SORT_ORDER = 'sortOrder';
30 public const FIELD_IS_ACTIVE = 'isActive';
31 public const FIELD_REFERENCES = 'references';
32 public const FIELD_VALID_FROM = 'validFrom';
33 public const FIELD_VALID_UNTIL = 'validUntil';
34
41 public function getId();
42
49 public function getVersion();
50
57 public function getCreatedAt();
58
65 public function getLastModifiedAt();
66
73 public function getLastModifiedBy();
74
81 public function getCreatedBy();
82
89 public function getName();
90
97 public function getKey();
98
105 public function getDescription();
106
113 public function getValue();
114
121 public function getPredicate();
122
130 public function getSortOrder();
131
138 public function getIsActive();
139
146 public function getReferences();
147
155 public function getValidFrom();
156
164 public function getValidUntil();
165
169 public function setId(?string $id): void;
170
174 public function setVersion(?int $version): void;
175
179 public function setCreatedAt(?DateTimeImmutable $createdAt): void;
180
184 public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
185
189 public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
190
194 public function setCreatedBy(?CreatedBy $createdBy): void;
195
199 public function setName(?LocalizedString $name): void;
200
204 public function setKey(?string $key): void;
205
209 public function setDescription(?LocalizedString $description): void;
210
214 public function setValue(?ProductDiscountValue $value): void;
215
219 public function setPredicate(?string $predicate): void;
220
224 public function setSortOrder(?string $sortOrder): void;
225
229 public function setIsActive(?bool $isActive): void;
230
234 public function setReferences(?ReferenceCollection $references): void;
235
239 public function setValidFrom(?DateTimeImmutable $validFrom): void;
240
244 public function setValidUntil(?DateTimeImmutable $validUntil): void;
245}
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setReferences(?ReferenceCollection $references)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)