commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ProductDiscountDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
14 use DateTimeImmutable;
15 
17 {
18  public const FIELD_NAME = 'name';
19  public const FIELD_KEY = 'key';
20  public const FIELD_DESCRIPTION = 'description';
21  public const FIELD_VALUE = 'value';
22  public const FIELD_PREDICATE = 'predicate';
23  public const FIELD_SORT_ORDER = 'sortOrder';
24  public const FIELD_IS_ACTIVE = 'isActive';
25  public const FIELD_VALID_FROM = 'validFrom';
26  public const FIELD_VALID_UNTIL = 'validUntil';
27 
34  public function getName();
35 
42  public function getKey();
43 
50  public function getDescription();
51 
58  public function getValue();
59 
66  public function getPredicate();
67 
75  public function getSortOrder();
76 
83  public function getIsActive();
84 
92  public function getValidFrom();
93 
101  public function getValidUntil();
102 
106  public function setName(?LocalizedString $name): void;
107 
111  public function setKey(?string $key): void;
112 
116  public function setDescription(?LocalizedString $description): void;
117 
121  public function setValue(?ProductDiscountValueDraft $value): void;
122 
126  public function setPredicate(?string $predicate): void;
127 
131  public function setSortOrder(?string $sortOrder): void;
132 
136  public function setIsActive(?bool $isActive): void;
137 
141  public function setValidFrom(?DateTimeImmutable $validFrom): void;
142 
146  public function setValidUntil(?DateTimeImmutable $validUntil): void;
147 }