commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
TextLineItemDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use DateTimeImmutable;
16 
17 interface TextLineItemDraft extends JsonObject
18 {
19  public const FIELD_KEY = 'key';
20  public const FIELD_ADDED_AT = 'addedAt';
21  public const FIELD_CUSTOM = 'custom';
22  public const FIELD_DESCRIPTION = 'description';
23  public const FIELD_NAME = 'name';
24  public const FIELD_QUANTITY = 'quantity';
25 
32  public function getKey();
33 
40  public function getAddedAt();
41 
48  public function getCustom();
49 
56  public function getDescription();
57 
64  public function getName();
65 
72  public function getQuantity();
73 
77  public function setKey(?string $key): void;
78 
82  public function setAddedAt(?DateTimeImmutable $addedAt): void;
83 
87  public function setCustom(?CustomFieldsDraft $custom): void;
88 
92  public function setDescription(?LocalizedString $description): void;
93 
97  public function setName(?LocalizedString $name): void;
98 
102  public function setQuantity(?int $quantity): void;
103 }