Completed
Push — _tmp_f0d61b62dab880e775e8e24ac... ( f0d61b )
by Kamil
22:32 queued 17:39
created
Model/AdjustableInterface.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -18,20 +18,31 @@
 block discarded – undo
18 18
 interface AdjustableInterface
19 19
 {
20 20
     /**
21
+     * @param string $type
21 22
      * @return Collection|AdjustmentInterface[]
22 23
      */
23 24
     public function getAdjustments(?string $type = null): Collection;
24 25
 
26
+    /**
27
+     * @return void
28
+     */
25 29
     public function addAdjustment(AdjustmentInterface $adjustment): void;
26 30
 
31
+    /**
32
+     * @return void
33
+     */
27 34
     public function removeAdjustment(AdjustmentInterface $adjustment): void;
28 35
 
29 36
     public function getAdjustmentsTotal(?string $type = null): int;
30 37
 
38
+    /**
39
+     * @return void
40
+     */
31 41
     public function removeAdjustments(?string $type = null): void;
32 42
 
33 43
     /**
34 44
      * Recalculates adjustments total. Should be used after adjustment change.
45
+     * @return void
35 46
      */
36 47
     public function recalculateAdjustmentsTotal(): void;
37 48
 }
Please login to merge, or discard this patch.
Model/AdjustmentInterface.php 1 patch
Doc Comments   +37 added lines patch added patch discarded remove patch
@@ -20,28 +20,59 @@  discard block
 block discarded – undo
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
+     * @param string $type
35
+     *
36
+     * @return void
37
+     */
27 38
     public function setType(?string $type): void;
28 39
 
40
+    /**
41
+     * @return string|null
42
+     */
29 43
     public function getLabel(): ?string;
30 44
 
45
+    /**
46
+     * @param string $label
47
+     *
48
+     * @return void
49
+     */
31 50
     public function setLabel(?string $label): void;
32 51
 
33 52
     public function getAmount(): int;
34 53
 
54
+    /**
55
+     * @return void
56
+     */
35 57
     public function setAmount(int $amount): void;
36 58
 
37 59
     public function isNeutral(): bool;
38 60
 
61
+    /**
62
+     * @return void
63
+     */
39 64
     public function setNeutral(bool $neutral): void;
40 65
 
41 66
     public function isLocked(): bool;
42 67
 
68
+    /**
69
+     * @return void
70
+     */
43 71
     public function lock(): void;
44 72
 
73
+    /**
74
+     * @return void
75
+     */
45 76
     public function unlock(): void;
46 77
 
47 78
     /**
@@ -54,7 +85,13 @@  discard block
 block discarded – undo
54 85
      */
55 86
     public function isCredit(): bool;
56 87
 
88
+    /**
89
+     * @return string|null
90
+     */
57 91
     public function getOriginCode(): ?string;
58 92
 
93
+    /**
94
+     * @return void
95
+     */
59 96
     public function setOriginCode(?string $originCode): void;
60 97
 }
Please login to merge, or discard this patch.
Model/OrderAwareInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -15,7 +15,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Model/OrderInterface.php 1 patch
Doc Comments   +39 added lines patch added patch discarded remove patch
@@ -24,20 +24,41 @@  discard block
 block discarded – undo
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
+     * @return void
34
+     */
29 35
     public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void;
30 36
 
31 37
     public function isCheckoutCompleted(): bool;
32 38
 
39
+    /**
40
+     * @return void
41
+     */
33 42
     public function completeCheckout(): void;
34 43
 
44
+    /**
45
+     * @return string|null
46
+     */
35 47
     public function getNumber(): ?string;
36 48
 
49
+    /**
50
+     * @return void
51
+     */
37 52
     public function setNumber(?string $number): void;
38 53
 
54
+    /**
55
+     * @return string|null
56
+     */
39 57
     public function getNotes(): ?string;
40 58
 
59
+    /**
60
+     * @return void
61
+     */
41 62
     public function setNotes(?string $notes): void;
42 63
 
43 64
     /**
@@ -45,18 +66,30 @@  discard block
 block discarded – undo
45 66
      */
46 67
     public function getItems(): Collection;
47 68
 
69
+    /**
70
+     * @return void
71
+     */
48 72
     public function clearItems(): void;
49 73
 
50 74
     public function countItems(): int;
51 75
 
76
+    /**
77
+     * @return void
78
+     */
52 79
     public function addItem(OrderItemInterface $item): void;
53 80
 
81
+    /**
82
+     * @return void
83
+     */
54 84
     public function removeItem(OrderItemInterface $item): void;
55 85
 
56 86
     public function hasItem(OrderItemInterface $item): bool;
57 87
 
58 88
     public function getItemsTotal(): int;
59 89
 
90
+    /**
91
+     * @return void
92
+     */
60 93
     public function recalculateItemsTotal(): void;
61 94
 
62 95
     public function getTotal(): int;
@@ -65,6 +98,9 @@  discard block
 block discarded – undo
65 98
 
66 99
     public function getState(): string;
67 100
 
101
+    /**
102
+     * @return void
103
+     */
68 104
     public function setState(string $state): void;
69 105
 
70 106
     public function isEmpty(): bool;
@@ -76,5 +112,8 @@  discard block
 block discarded – undo
76 112
 
77 113
     public function getAdjustmentsTotalRecursively(?string $type = null): int;
78 114
 
115
+    /**
116
+     * @return void
117
+     */
79 118
     public function removeAdjustmentsRecursively(?string $type = null): void;
80 119
 }
Please login to merge, or discard this patch.
Model/OrderItemInterface.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -22,12 +22,16 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,11 @@  discard block
 block discarded – undo
57 70
      */
58 71
     public function getAdjustmentsRecursively(?string $type = null): Collection;
59 72
 
73
+    /**
74
+     * @param string $type
75
+     *
76
+     * @return void
77
+     */
60 78
     public function removeAdjustmentsRecursively(?string $type = null): void;
61 79
 
62 80
     public function getAdjustmentsTotalRecursively(?string $type = null): int;
Please login to merge, or discard this patch.
Model/OrderSequenceInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,5 +19,8 @@
 block discarded – undo
19 19
 {
20 20
     public function getIndex(): int;
21 21
 
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function incrementIndex(): void;
23 26
 }
Please login to merge, or discard this patch.
Modifier/OrderItemQuantityModifierInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,5 +17,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Modifier/OrderModifierInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,7 +18,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Processor/OrderProcessorInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,5 +17,8 @@
 block discarded – undo
17 17
 
18 18
 interface OrderProcessorInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function process(OrderInterface $order): void;
21 24
 }
Please login to merge, or discard this patch.