@@ -2,14 +2,14 @@ |
||
| 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 | 11 | use jamesdb\Cart\Identifier\IdentifierInterface; |
| 9 | 12 | use jamesdb\Cart\Storage\StorageInterface; |
| 10 | -use League\Event\Emitter; |
|
| 11 | -use SebastianBergmann\Money\Currency; |
|
| 12 | -use SebastianBergmann\Money\Money; |
|
| 13 | 13 | |
| 14 | 14 | class Cart |
| 15 | 15 | { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | /** |
| 251 | 251 | * Return the price including tax. |
| 252 | 252 | * |
| 253 | - * @return integer |
|
| 253 | + * @return double |
|
| 254 | 254 | */ |
| 255 | 255 | public function getTotalPrice() |
| 256 | 256 | { |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | /** |
| 267 | 267 | * Return the price excluding tax. |
| 268 | 268 | * |
| 269 | - * @return integer |
|
| 269 | + * @return double |
|
| 270 | 270 | */ |
| 271 | 271 | public function getTotalPriceExcludingTax() |
| 272 | 272 | { |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | /** |
| 283 | 283 | * Return the carts total tax. |
| 284 | 284 | * |
| 285 | - * @return integer |
|
| 285 | + * @return double |
|
| 286 | 286 | */ |
| 287 | 287 | public function getTotalTax() |
| 288 | 288 | { |
@@ -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 | { |