@@ -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 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * |
| 99 | 99 | * @param \Money\Currency $currency |
| 100 | 100 | * |
| 101 | - * @return \jamesdb\Cart\Money |
|
| 101 | + * @return \Money\Money |
|
| 102 | 102 | */ |
| 103 | 103 | public function getPriceExcludingTax(Currency $currency) |
| 104 | 104 | { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * |
| 111 | 111 | * @param \Money\Currency $currency |
| 112 | 112 | * |
| 113 | - * @return \jamesdb\Cart\Money |
|
| 113 | + * @return \Money\Money |
|
| 114 | 114 | */ |
| 115 | 115 | public function getPrice(Currency $currency) |
| 116 | 116 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * |
| 123 | 123 | * @param \Money\Currency $currency |
| 124 | 124 | * |
| 125 | - * @return \jamesdb\Cart\Money |
|
| 125 | + * @return \Money\Money |
|
| 126 | 126 | */ |
| 127 | 127 | public function getTax(Currency $currency) |
| 128 | 128 | { |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * |
| 173 | 173 | * @param string $offset |
| 174 | 174 | * |
| 175 | - * @return mixed |
|
| 175 | + * @return boolean |
|
| 176 | 176 | */ |
| 177 | 177 | public function offsetExists($offset) |
| 178 | 178 | { |
@@ -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 | { |