@@ -19,5 +19,8 @@ |
||
| 19 | 19 | |
| 20 | 20 | interface LocaleInterface extends ResourceInterface, CodeAwareInterface, TimestampableInterface |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @return string|null |
|
| 24 | + */ |
|
| 22 | 25 | public function getName(?string $locale = null): ?string; |
| 23 | 26 | } |
@@ -24,7 +24,13 @@ |
||
| 24 | 24 | |
| 25 | 25 | public function hasLocale(LocaleInterface $locale): bool; |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 27 | 30 | public function addLocale(LocaleInterface $locale): void; |
| 28 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 29 | 35 | public function removeLocale(LocaleInterface $locale): void; |
| 30 | 36 | } |
@@ -15,7 +15,13 @@ |
||
| 15 | 15 | |
| 16 | 16 | interface OrderAwareInterface |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @return OrderInterface|null |
|
| 20 | + */ |
|
| 18 | 21 | public function getOrder(): ?OrderInterface; |
| 19 | 22 | |
| 23 | + /** |
|
| 24 | + * @return void |
|
| 25 | + */ |
|
| 20 | 26 | public function setOrder(?OrderInterface $order): void; |
| 21 | 27 | } |
@@ -22,12 +22,16 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | public function getUnitPrice(): int; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 25 | 28 | public function setUnitPrice(int $unitPrice): void; |
| 26 | 29 | |
| 27 | 30 | public function getTotal(): int; |
| 28 | 31 | |
| 29 | 32 | /** |
| 30 | 33 | * Recalculate totals. Should be used after every unit change. |
| 34 | + * @return void |
|
| 31 | 35 | */ |
| 32 | 36 | public function recalculateUnitsTotal(): void; |
| 33 | 37 | |
@@ -39,6 +43,9 @@ discard block |
||
| 39 | 43 | |
| 40 | 44 | public function isImmutable(): bool; |
| 41 | 45 | |
| 46 | + /** |
|
| 47 | + * @return void |
|
| 48 | + */ |
|
| 42 | 49 | public function setImmutable(bool $immutable): void; |
| 43 | 50 | |
| 44 | 51 | /** |
@@ -48,8 +55,14 @@ discard block |
||
| 48 | 55 | |
| 49 | 56 | public function hasUnit(OrderItemUnitInterface $itemUnit): bool; |
| 50 | 57 | |
| 58 | + /** |
|
| 59 | + * @return void |
|
| 60 | + */ |
|
| 51 | 61 | public function addUnit(OrderItemUnitInterface $itemUnit): void; |
| 52 | 62 | |
| 63 | + /** |
|
| 64 | + * @return void |
|
| 65 | + */ |
|
| 53 | 66 | public function removeUnit(OrderItemUnitInterface $itemUnit): void; |
| 54 | 67 | |
| 55 | 68 | /** |
@@ -57,6 +70,9 @@ discard block |
||
| 57 | 70 | */ |
| 58 | 71 | public function getAdjustmentsRecursively(?string $type = null): Collection; |
| 59 | 72 | |
| 73 | + /** |
|
| 74 | + * @return void |
|
| 75 | + */ |
|
| 60 | 76 | public function removeAdjustmentsRecursively(?string $type = null): void; |
| 61 | 77 | |
| 62 | 78 | public function getAdjustmentsTotalRecursively(?string $type = null): int; |
@@ -19,5 +19,8 @@ |
||
| 19 | 19 | { |
| 20 | 20 | public function getIndex(): int; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 22 | 25 | public function incrementIndex(): void; |
| 23 | 26 | } |
@@ -17,5 +17,8 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface OrderItemQuantityModifierInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function modify(OrderItemInterface $orderItem, int $targetQuantity): void; |
| 21 | 24 | } |
@@ -18,7 +18,13 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface OrderModifierInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function addToOrder(OrderInterface $cart, OrderItemInterface $cartItem): void; |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 23 | 29 | public function removeFromOrder(OrderInterface $cart, OrderItemInterface $item): void; |
| 24 | 30 | } |
@@ -17,5 +17,8 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface OrderProcessorInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function process(OrderInterface $order): void; |
| 21 | 24 | } |
@@ -17,5 +17,8 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface StateResolverInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function resolve(OrderInterface $order): void; |
| 21 | 24 | } |