Total Complexity | 3 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait ProductFamilies |
||
6 | { |
||
7 | /** |
||
8 | * Create a product family. |
||
9 | * |
||
10 | * @param array $data |
||
11 | * |
||
12 | * @return array |
||
13 | */ |
||
14 | public function product_family_create(array $data): array |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get details for a product family. |
||
29 | * |
||
30 | * @param int $family_id |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function product_family_details(int $family_id): array |
||
35 | { |
||
36 | $this->apiEndPoint = "/product_families/{$family_id}.json"; |
||
37 | |||
38 | $this->verb = 'get'; |
||
39 | |||
40 | return $this->doChargifyRequest(); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Create a product family. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public function product_families_list(): array |
||
55 | } |
||
56 | } |
||
57 |