commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ApprovalRule.php
1 <?php
2 
3 declare(strict_types=1);
10 
18 use DateTimeImmutable;
19 
20 interface ApprovalRule extends BaseResource
21 {
22  public const FIELD_CREATED_BY = 'createdBy';
23  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
24  public const FIELD_KEY = 'key';
25  public const FIELD_NAME = 'name';
26  public const FIELD_DESCRIPTION = 'description';
27  public const FIELD_STATUS = 'status';
28  public const FIELD_PREDICATE = 'predicate';
29  public const FIELD_APPROVERS = 'approvers';
30  public const FIELD_REQUESTERS = 'requesters';
31  public const FIELD_BUSINESS_UNIT = 'businessUnit';
32  public const FIELD_CUSTOM = 'custom';
33 
40  public function getId();
41 
48  public function getVersion();
49 
56  public function getCreatedAt();
57 
64  public function getCreatedBy();
65 
72  public function getLastModifiedAt();
73 
80  public function getLastModifiedBy();
81 
88  public function getKey();
89 
96  public function getName();
97 
104  public function getDescription();
105 
112  public function getStatus();
113 
120  public function getPredicate();
121 
128  public function getApprovers();
129 
136  public function getRequesters();
137 
144  public function getBusinessUnit();
145 
152  public function getCustom();
153 
157  public function setId(?string $id): void;
158 
162  public function setVersion(?int $version): void;
163 
167  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
168 
172  public function setCreatedBy(?CreatedBy $createdBy): void;
173 
177  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
178 
182  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
183 
187  public function setKey(?string $key): void;
188 
192  public function setName(?string $name): void;
193 
197  public function setDescription(?string $description): void;
198 
202  public function setStatus(?string $status): void;
203 
207  public function setPredicate(?string $predicate): void;
208 
212  public function setApprovers(?ApproverHierarchy $approvers): void;
213 
217  public function setRequesters(?RuleRequesterCollection $requesters): void;
218 
222  public function setBusinessUnit(?BusinessUnitKeyReference $businessUnit): void;
223 
227  public function setCustom(?CustomFields $custom): void;
228 }
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setCreatedAt(?DateTimeImmutable $createdAt)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setBusinessUnit(?BusinessUnitKeyReference $businessUnit)
setRequesters(?RuleRequesterCollection $requesters)
setApprovers(?ApproverHierarchy $approvers)