1 | <?php |
||
8 | class ProductVariant extends AbstractResource |
||
9 | { |
||
10 | /** |
||
11 | * @var bool |
||
12 | */ |
||
13 | protected $countable = true; |
||
14 | |||
15 | /** |
||
16 | * @param float $id |
||
17 | * @param array $fields |
||
18 | * @return array |
||
19 | */ |
||
20 | 1 | public function get(float $id, array $fields = []) |
|
30 | |||
31 | /** |
||
32 | * @param float $id product id |
||
33 | * @param array $query |
||
34 | * @return array |
||
35 | */ |
||
36 | 1 | public function all(float $id, array $query = []) |
|
44 | |||
45 | /** |
||
46 | * @param float $id product id |
||
47 | * @return array |
||
48 | */ |
||
49 | 1 | public function count(float $id) |
|
55 | |||
56 | /** |
||
57 | * @param float $id product id |
||
58 | * @param array $params |
||
59 | * @return array |
||
60 | */ |
||
61 | 1 | public function create(float $id, array $params = []) |
|
71 | |||
72 | /** |
||
73 | * @param float $id |
||
74 | * @param array $params |
||
75 | * @return array |
||
76 | */ |
||
77 | 1 | public function update(float $id, array $params = []) |
|
87 | |||
88 | /** |
||
89 | * @param float $productId |
||
90 | * @param float $variantId |
||
91 | */ |
||
92 | 1 | public function delete(float $productId, float $variantId) |
|
96 | } |
||
97 |