@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * |
| 202 | 202 | * @param string $rowId |
| 203 | 203 | * |
| 204 | - * @return array|null |
|
| 204 | + * @return CartItem |
|
| 205 | 205 | */ |
| 206 | 206 | public function getItem($rowId) |
| 207 | 207 | { |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | /** |
| 277 | 277 | * Return the price including tax. |
| 278 | 278 | * |
| 279 | - * @return integer |
|
| 279 | + * @return double |
|
| 280 | 280 | */ |
| 281 | 281 | public function getTotalPrice() |
| 282 | 282 | { |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | /** |
| 293 | 293 | * Return the price excluding tax. |
| 294 | 294 | * |
| 295 | - * @return integer |
|
| 295 | + * @return double |
|
| 296 | 296 | */ |
| 297 | 297 | public function getTotalPriceExcludingTax() |
| 298 | 298 | { |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | /** |
| 309 | 309 | * Return the carts total tax. |
| 310 | 310 | * |
| 311 | - * @return integer |
|
| 311 | + * @return double |
|
| 312 | 312 | */ |
| 313 | 313 | public function getTotalTax() |
| 314 | 314 | { |
@@ -2,14 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace jamesdb\Cart; |
| 4 | 4 | |
| 5 | +use League\Event\Emitter; |
|
| 6 | +use SebastianBergmann\Money\Currency; |
|
| 7 | +use SebastianBergmann\Money\Money; |
|
| 5 | 8 | use jamesdb\Cart\CartItem; |
| 6 | 9 | use jamesdb\Cart\Event as CartEvent; |
| 7 | 10 | use jamesdb\Cart\Exception as CartException; |
| 8 | -use jamesdb\Cart\Identifier\IdentifierInterface; |
|
| 9 | 11 | use jamesdb\Cart\Storage\StorageInterface; |
| 10 | -use League\Event\Emitter; |
|
| 11 | -use SebastianBergmann\Money\Currency; |
|
| 12 | -use SebastianBergmann\Money\Money; |
|
| 13 | 12 | |
| 14 | 13 | class Cart |
| 15 | 14 | { |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | /** |
| 118 | 118 | * Return the item tex. |
| 119 | 119 | * |
| 120 | - * @return SebastianBergmann\Money\Money |
|
| 120 | + * @return Money |
|
| 121 | 121 | */ |
| 122 | 122 | public function getTax(Currency $currency) |
| 123 | 123 | { |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * |
| 168 | 168 | * @param string $offset |
| 169 | 169 | * |
| 170 | - * @return mixed |
|
| 170 | + * @return boolean |
|
| 171 | 171 | */ |
| 172 | 172 | public function offsetExists($offset) |
| 173 | 173 | { |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | namespace jamesdb\Cart; |
| 4 | 4 | |
| 5 | 5 | use ArrayAccess; |
| 6 | -use jamesdb\Cart\Exception\CartPropertyNotIntegerException; |
|
| 7 | 6 | use SebastianBergmann\Money\Currency; |
| 8 | 7 | use SebastianBergmann\Money\Money; |
| 8 | +use jamesdb\Cart\Exception\CartPropertyNotIntegerException; |
|
| 9 | 9 | |
| 10 | 10 | class CartItem implements ArrayAccess |
| 11 | 11 | { |