@@ -22,16 +22,26 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function getAdjustments(?string $type = null): Collection; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 25 | 28 | public function addAdjustment(AdjustmentInterface $adjustment): void; |
| 26 | 29 | |
| 30 | + /** |
|
| 31 | + * @return void |
|
| 32 | + */ |
|
| 27 | 33 | public function removeAdjustment(AdjustmentInterface $adjustment): void; |
| 28 | 34 | |
| 29 | 35 | public function getAdjustmentsTotal(?string $type = null): int; |
| 30 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 31 | 40 | public function removeAdjustments(?string $type = null): void; |
| 32 | 41 | |
| 33 | 42 | /** |
| 34 | 43 | * Recalculates adjustments total. Should be used after adjustment change. |
| 44 | + * @return void |
|
| 35 | 45 | */ |
| 36 | 46 | public function recalculateAdjustmentsTotal(): void; |
| 37 | 47 | } |
@@ -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 | } |
@@ -33,21 +33,45 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function getMethod(): ?PaymentMethodInterface; |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @return void |
|
| 38 | + */ |
|
| 36 | 39 | public function setMethod(?PaymentMethodInterface $method): void; |
| 37 | 40 | |
| 41 | + /** |
|
| 42 | + * @return string |
|
| 43 | + */ |
|
| 38 | 44 | public function getState(): ?string; |
| 39 | 45 | |
| 46 | + /** |
|
| 47 | + * @return void |
|
| 48 | + */ |
|
| 40 | 49 | public function setState(string $state): void; |
| 41 | 50 | |
| 51 | + /** |
|
| 52 | + * @return string |
|
| 53 | + */ |
|
| 42 | 54 | public function getCurrencyCode(): ?string; |
| 43 | 55 | |
| 56 | + /** |
|
| 57 | + * @return void |
|
| 58 | + */ |
|
| 44 | 59 | public function setCurrencyCode(string $currencyCode): void; |
| 45 | 60 | |
| 61 | + /** |
|
| 62 | + * @return integer |
|
| 63 | + */ |
|
| 46 | 64 | public function getAmount(): ?int; |
| 47 | 65 | |
| 66 | + /** |
|
| 67 | + * @return void |
|
| 68 | + */ |
|
| 48 | 69 | public function setAmount(int $amount): void; |
| 49 | 70 | |
| 50 | 71 | public function getDetails(): array; |
| 51 | 72 | |
| 73 | + /** |
|
| 74 | + * @return void |
|
| 75 | + */ |
|
| 52 | 76 | public function setDetails(array $details): void; |
| 53 | 77 | } |
@@ -34,6 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * {@inheritdoc} |
| 37 | + * @return void |
|
| 37 | 38 | */ |
| 38 | 39 | public function setName(?string $name): void; |
| 39 | 40 | |
@@ -44,6 +45,7 @@ discard block |
||
| 44 | 45 | |
| 45 | 46 | /** |
| 46 | 47 | * {@inheritdoc} |
| 48 | + * @return void |
|
| 47 | 49 | */ |
| 48 | 50 | public function setDescription(?string $description): void; |
| 49 | 51 | |
@@ -54,18 +56,34 @@ discard block |
||
| 54 | 56 | |
| 55 | 57 | /** |
| 56 | 58 | * {@inheritdoc} |
| 59 | + * @return void |
|
| 57 | 60 | */ |
| 58 | 61 | public function setInstructions(?string $instructions): void; |
| 59 | 62 | |
| 63 | + /** |
|
| 64 | + * @return string |
|
| 65 | + */ |
|
| 60 | 66 | public function getEnvironment(): ?string; |
| 61 | 67 | |
| 68 | + /** |
|
| 69 | + * @return void |
|
| 70 | + */ |
|
| 62 | 71 | public function setEnvironment(?string $environment): void; |
| 63 | 72 | |
| 73 | + /** |
|
| 74 | + * @return integer |
|
| 75 | + */ |
|
| 64 | 76 | public function getPosition(): ?int; |
| 65 | 77 | |
| 78 | + /** |
|
| 79 | + * @param integer $position |
|
| 80 | + * |
|
| 81 | + * @return void |
|
| 82 | + */ |
|
| 66 | 83 | public function setPosition(?int $position): void; |
| 67 | 84 | |
| 68 | 85 | /** |
| 86 | + * @param string $locale |
|
| 69 | 87 | * @return PaymentMethodTranslationInterface |
| 70 | 88 | */ |
| 71 | 89 | public function getTranslation(?string $locale = null): TranslationInterface; |