commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Category.php
1 <?php
2 
3 declare(strict_types=1);
10 
19 use DateTimeImmutable;
20 
21 interface Category extends BaseResource
22 {
23  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
24  public const FIELD_CREATED_BY = 'createdBy';
25  public const FIELD_NAME = 'name';
26  public const FIELD_SLUG = 'slug';
27  public const FIELD_DESCRIPTION = 'description';
28  public const FIELD_ANCESTORS = 'ancestors';
29  public const FIELD_PARENT = 'parent';
30  public const FIELD_ORDER_HINT = 'orderHint';
31  public const FIELD_EXTERNAL_ID = 'externalId';
32  public const FIELD_META_TITLE = 'metaTitle';
33  public const FIELD_META_DESCRIPTION = 'metaDescription';
34  public const FIELD_META_KEYWORDS = 'metaKeywords';
35  public const FIELD_CUSTOM = 'custom';
36  public const FIELD_ASSETS = 'assets';
37  public const FIELD_KEY = 'key';
38 
45  public function getId();
46 
53  public function getVersion();
54 
61  public function getCreatedAt();
62 
69  public function getLastModifiedAt();
70 
77  public function getLastModifiedBy();
78 
85  public function getCreatedBy();
86 
93  public function getName();
94 
104  public function getSlug();
105 
112  public function getDescription();
113 
120  public function getAncestors();
121 
128  public function getParent();
129 
136  public function getOrderHint();
137 
144  public function getExternalId();
145 
152  public function getMetaTitle();
153 
160  public function getMetaDescription();
161 
168  public function getMetaKeywords();
169 
176  public function getCustom();
177 
184  public function getAssets();
185 
192  public function getKey();
193 
197  public function setId(?string $id): void;
198 
202  public function setVersion(?int $version): void;
203 
207  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
208 
212  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
213 
217  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
218 
222  public function setCreatedBy(?CreatedBy $createdBy): void;
223 
227  public function setName(?LocalizedString $name): void;
228 
232  public function setSlug(?LocalizedString $slug): void;
233 
237  public function setDescription(?LocalizedString $description): void;
238 
242  public function setAncestors(?CategoryReferenceCollection $ancestors): void;
243 
247  public function setParent(?CategoryReference $parent): void;
248 
252  public function setOrderHint(?string $orderHint): void;
253 
257  public function setExternalId(?string $externalId): void;
258 
262  public function setMetaTitle(?LocalizedString $metaTitle): void;
263 
267  public function setMetaDescription(?LocalizedString $metaDescription): void;
268 
272  public function setMetaKeywords(?LocalizedString $metaKeywords): void;
273 
277  public function setCustom(?CustomFields $custom): void;
278 
282  public function setAssets(?AssetCollection $assets): void;
283 
287  public function setKey(?string $key): void;
288 }
setDescription(?LocalizedString $description)
setAncestors(?CategoryReferenceCollection $ancestors)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setParent(?CategoryReference $parent)
setAssets(?AssetCollection $assets)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setMetaDescription(?LocalizedString $metaDescription)
setCreatedAt(?DateTimeImmutable $createdAt)
setMetaTitle(?LocalizedString $metaTitle)
setMetaKeywords(?LocalizedString $metaKeywords)