| 1 | <?php |
||
| 9 | abstract class AbstractCartEvent extends AbstractEvent |
||
| 10 | { |
||
| 11 | /* |
||
| 12 | * @var \jamesdb\Cart\Cart |
||
| 13 | */ |
||
| 14 | protected $cart; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The added item. |
||
| 18 | * |
||
| 19 | * @var \jamesdb\Cart\CartItem |
||
| 20 | */ |
||
| 21 | protected $item; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Constructor. |
||
| 25 | * |
||
| 26 | * @param jamesdb\Cart\Cart $cart |
||
| 27 | * @param jamesdb\Cart\CartItem $item |
||
| 28 | */ |
||
| 29 | 39 | public function __construct(Cart $cart, CartItem $item) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Get the cart. |
||
| 37 | * |
||
| 38 | * @return \jamesdb\Cart\Cart |
||
| 39 | */ |
||
| 40 | 9 | public function getCart() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Get the item. |
||
| 47 | * |
||
| 48 | * @return \jamesdb\Cart\CartItem |
||
| 49 | */ |
||
| 50 | 9 | public function getItem() |
|
| 54 | } |
||
| 55 |