@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace jamesdb\Cart; |
| 4 | 4 | |
| 5 | +use League\Event\Emitter; |
|
| 6 | +use Money\Currency; |
|
| 5 | 7 | use jamesdb\Cart\CartItem; |
| 6 | 8 | use jamesdb\Cart\Event as CartEvent; |
| 7 | 9 | use jamesdb\Cart\Exception as CartException; |
| 8 | 10 | use jamesdb\Cart\Storage\StorageInterface; |
| 9 | -use League\Event\Emitter; |
|
| 10 | -use Money\Currency; |
|
| 11 | 11 | |
| 12 | 12 | class Cart implements CurrencyAwareInterface |
| 13 | 13 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | /** |
| 97 | 97 | * Return item price excluding tax. |
| 98 | 98 | * |
| 99 | - * @return \SebastianBergmann\Money\Money |
|
| 99 | + * @return \Money\Money |
|
| 100 | 100 | */ |
| 101 | 101 | public function getPriceExcludingTax(Currency $currency) |
| 102 | 102 | { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | /** |
| 107 | 107 | * Return item price including tax. |
| 108 | 108 | * |
| 109 | - * @return \SebastianBergmann\Money\Money |
|
| 109 | + * @return \Money\Money |
|
| 110 | 110 | */ |
| 111 | 111 | public function getPrice(Currency $currency) |
| 112 | 112 | { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | /** |
| 117 | 117 | * Return the item tax. |
| 118 | 118 | * |
| 119 | - * @return SebastianBergmann\Money\Money |
|
| 119 | + * @return \Money\Money |
|
| 120 | 120 | */ |
| 121 | 121 | public function getTax(Currency $currency) |
| 122 | 122 | { |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | * |
| 167 | 167 | * @param string $offset |
| 168 | 168 | * |
| 169 | - * @return mixed |
|
| 169 | + * @return boolean |
|
| 170 | 170 | */ |
| 171 | 171 | public function offsetExists($offset) |
| 172 | 172 | { |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | * Constructor. |
| 18 | 18 | * |
| 19 | 19 | * @param integer $total |
| 20 | - * @param \Money\Currency $money |
|
| 21 | 20 | */ |
| 22 | 21 | public function __construct($total = 0, MoneyPHP\Currency $currency) |
| 23 | 22 | { |