@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Treestoneit\ShoppingCart\Concerns; |
4 | 4 | |
5 | -use Treestoneit\ShoppingCart\Models\Cart as CartModel; |
|
6 | 5 | use Illuminate\Contracts\Auth\Authenticatable; |
6 | +use Treestoneit\ShoppingCart\Models\Cart as CartModel; |
|
7 | 7 | |
8 | 8 | trait AttachesToUsers |
9 | 9 | { |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Treestoneit\ShoppingCart\Concerns; |
4 | 4 | |
5 | +use Closure; |
|
6 | +use Illuminate\Support\Facades\Config; |
|
5 | 7 | use Treestoneit\ShoppingCart\Models\CartItem; |
6 | 8 | use Treestoneit\ShoppingCart\Models\CartItemCollection; |
7 | 9 | use Treestoneit\ShoppingCart\Taxable; |
8 | -use Closure; |
|
9 | -use Illuminate\Support\Facades\Config; |
|
10 | 10 | |
11 | 11 | trait CalculatesTotals |
12 | 12 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @param \Treestoneit\ShoppingCart\Buyable $buyable |
28 | 28 | * @param int $quantity |
29 | 29 | * @param array|null $options |
30 | - * @return \Treestoneit\ShoppingCart\CartManager |
|
30 | + * @return ManagesCartItems |
|
31 | 31 | */ |
32 | 32 | public function add(Buyable $buyable, int $quantity = 1, array $options = []): self |
33 | 33 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * |
74 | 74 | * @param int $item |
75 | 75 | * @param int $quantity |
76 | - * @return \Treestoneit\ShoppingCart\CartManager |
|
76 | + * @return ManagesCartItems |
|
77 | 77 | * @throws \Exception |
78 | 78 | */ |
79 | 79 | public function update(int $item, int $quantity): self |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * |
87 | 87 | * @param int $item |
88 | 88 | * @param int $quantity |
89 | - * @return \Treestoneit\ShoppingCart\CartManager |
|
89 | + * @return ManagesCartItems |
|
90 | 90 | * @throws \Exception |
91 | 91 | */ |
92 | 92 | public function updateQuantity(int $item, int $quantity): self |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @param int $item |
111 | 111 | * @param array $options |
112 | - * @return \Treestoneit\ShoppingCart\CartManager |
|
112 | + * @return ManagesCartItems |
|
113 | 113 | */ |
114 | 114 | public function updateOptions(int $item, array $options): self |
115 | 115 | { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * @param int $item |
125 | 125 | * @param string $option |
126 | 126 | * @param $value |
127 | - * @return \Treestoneit\ShoppingCart\CartManager |
|
127 | + * @return ManagesCartItems |
|
128 | 128 | */ |
129 | 129 | public function updateOption(int $item, string $option, $value): self |
130 | 130 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Treestoneit\ShoppingCart\Concerns; |
4 | 4 | |
5 | +use Illuminate\Support\Facades\Session; |
|
5 | 6 | use Treestoneit\ShoppingCart\Buyable; |
6 | 7 | use Treestoneit\ShoppingCart\Models\Cart; |
7 | 8 | use Treestoneit\ShoppingCart\Models\CartItem; |
8 | -use Illuminate\Support\Facades\Session; |
|
9 | 9 | |
10 | 10 | trait ManagesCartItems |
11 | 11 | { |