@@ -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 | } |
@@ -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 | } |
@@ -20,28 +20,55 @@ discard block |
||
20 | 20 | { |
21 | 21 | public function getAdjustable(): ?AdjustableInterface; |
22 | 22 | |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function setAdjustable(?AdjustableInterface $adjustable): void; |
24 | 27 | |
28 | + /** |
|
29 | + * @return string|null |
|
30 | + */ |
|
25 | 31 | public function getType(): ?string; |
26 | 32 | |
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
27 | 36 | public function setType(?string $type): void; |
28 | 37 | |
38 | + /** |
|
39 | + * @return string|null |
|
40 | + */ |
|
29 | 41 | public function getLabel(): ?string; |
30 | 42 | |
43 | + /** |
|
44 | + * @return void |
|
45 | + */ |
|
31 | 46 | public function setLabel(?string $label): void; |
32 | 47 | |
33 | 48 | public function getAmount(): int; |
34 | 49 | |
50 | + /** |
|
51 | + * @return void |
|
52 | + */ |
|
35 | 53 | public function setAmount(int $amount): void; |
36 | 54 | |
37 | 55 | public function isNeutral(): bool; |
38 | 56 | |
57 | + /** |
|
58 | + * @return void |
|
59 | + */ |
|
39 | 60 | public function setNeutral(bool $neutral): void; |
40 | 61 | |
41 | 62 | public function isLocked(): bool; |
42 | 63 | |
64 | + /** |
|
65 | + * @return void |
|
66 | + */ |
|
43 | 67 | public function lock(): void; |
44 | 68 | |
69 | + /** |
|
70 | + * @return void |
|
71 | + */ |
|
45 | 72 | public function unlock(): void; |
46 | 73 | |
47 | 74 | /** |
@@ -54,7 +81,13 @@ discard block |
||
54 | 81 | */ |
55 | 82 | public function isCredit(): bool; |
56 | 83 | |
84 | + /** |
|
85 | + * @return string|null |
|
86 | + */ |
|
57 | 87 | public function getOriginCode(): ?string; |
58 | 88 | |
89 | + /** |
|
90 | + * @return void |
|
91 | + */ |
|
59 | 92 | public function setOriginCode(?string $originCode): void; |
60 | 93 | } |
@@ -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 | } |
@@ -24,20 +24,45 @@ discard block |
||
24 | 24 | public const STATE_CANCELLED = 'cancelled'; |
25 | 25 | public const STATE_FULFILLED = 'fulfilled'; |
26 | 26 | |
27 | + /** |
|
28 | + * @return \DateTimeInterface|null |
|
29 | + */ |
|
27 | 30 | public function getCheckoutCompletedAt(): ?\DateTimeInterface; |
28 | 31 | |
32 | + /** |
|
33 | + * @param \DateTime $checkoutCompletedAt |
|
34 | + * |
|
35 | + * @return void |
|
36 | + */ |
|
29 | 37 | public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void; |
30 | 38 | |
31 | 39 | public function isCheckoutCompleted(): bool; |
32 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
33 | 44 | public function completeCheckout(): void; |
34 | 45 | |
46 | + /** |
|
47 | + * @return string|null |
|
48 | + */ |
|
35 | 49 | public function getNumber(): ?string; |
36 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
37 | 54 | public function setNumber(?string $number): void; |
38 | 55 | |
56 | + /** |
|
57 | + * @return string|null |
|
58 | + */ |
|
39 | 59 | public function getNotes(): ?string; |
40 | 60 | |
61 | + /** |
|
62 | + * @param string $notes |
|
63 | + * |
|
64 | + * @return void |
|
65 | + */ |
|
41 | 66 | public function setNotes(?string $notes): void; |
42 | 67 | |
43 | 68 | /** |
@@ -45,18 +70,30 @@ discard block |
||
45 | 70 | */ |
46 | 71 | public function getItems(): Collection; |
47 | 72 | |
73 | + /** |
|
74 | + * @return void |
|
75 | + */ |
|
48 | 76 | public function clearItems(): void; |
49 | 77 | |
50 | 78 | public function countItems(): int; |
51 | 79 | |
80 | + /** |
|
81 | + * @return void |
|
82 | + */ |
|
52 | 83 | public function addItem(OrderItemInterface $item): void; |
53 | 84 | |
85 | + /** |
|
86 | + * @return void |
|
87 | + */ |
|
54 | 88 | public function removeItem(OrderItemInterface $item): void; |
55 | 89 | |
56 | 90 | public function hasItem(OrderItemInterface $item): bool; |
57 | 91 | |
58 | 92 | public function getItemsTotal(): int; |
59 | 93 | |
94 | + /** |
|
95 | + * @return void |
|
96 | + */ |
|
60 | 97 | public function recalculateItemsTotal(): void; |
61 | 98 | |
62 | 99 | public function getTotal(): int; |
@@ -65,6 +102,9 @@ discard block |
||
65 | 102 | |
66 | 103 | public function getState(): string; |
67 | 104 | |
105 | + /** |
|
106 | + * @return void |
|
107 | + */ |
|
68 | 108 | public function setState(string $state): void; |
69 | 109 | |
70 | 110 | public function isEmpty(): bool; |
@@ -76,5 +116,8 @@ discard block |
||
76 | 116 | |
77 | 117 | public function getAdjustmentsTotalRecursively(?string $type = null): int; |
78 | 118 | |
119 | + /** |
|
120 | + * @return void |
|
121 | + */ |
|
79 | 122 | public function removeAdjustmentsRecursively(?string $type = null): void; |
80 | 123 | } |
@@ -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 | } |