Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class CartResource extends Ressource |
||
9 | { |
||
10 | const ITEMS_KEY = 'shoppingCartItems'; |
||
11 | |||
12 | /** @var array */ |
||
13 | protected $keys = [ |
||
14 | 'giftCardAmount', |
||
15 | 'giftCardCount', |
||
16 | 'giftCardCurrency', |
||
17 | 'preOrderDate', |
||
18 | 'preorderIndicator', |
||
19 | 'shoppingCartItems', |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * Client constructor. |
||
24 | * |
||
25 | * @param array $fields |
||
26 | * @throws Exception |
||
27 | */ |
||
28 | public function __construct(array $fields = []) |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param CartItemResource $item |
||
36 | * @throws Exception |
||
37 | */ |
||
38 | public function addItem(CartItemResource $item): void |
||
47 |