commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
LineItemStateTransitionMessagePayload.php
1 <?php
2 
3 declare(strict_types=1);
10 
14 use DateTimeImmutable;
15 
17 {
18  public const FIELD_LINE_ITEM_ID = 'lineItemId';
19  public const FIELD_LINE_ITEM_KEY = 'lineItemKey';
20  public const FIELD_TRANSITION_DATE = 'transitionDate';
21  public const FIELD_QUANTITY = 'quantity';
22  public const FIELD_FROM_STATE = 'fromState';
23  public const FIELD_TO_STATE = 'toState';
24 
31  public function getLineItemId();
32 
39  public function getLineItemKey();
40 
47  public function getTransitionDate();
48 
55  public function getQuantity();
56 
63  public function getFromState();
64 
71  public function getToState();
72 
76  public function setLineItemId(?string $lineItemId): void;
77 
81  public function setLineItemKey(?string $lineItemKey): void;
82 
86  public function setTransitionDate(?DateTimeImmutable $transitionDate): void;
87 
91  public function setQuantity(?int $quantity): void;
92 
96  public function setFromState(?StateReference $fromState): void;
97 
101  public function setToState(?StateReference $toState): void;
102 }