Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class TaxCodes extends ApiService { |
||
15 | |||
16 | /** |
||
17 | * @param int $id |
||
18 | * @return TaxCode|null |
||
19 | * @throws ApiException |
||
20 | * @throws OAuthException |
||
21 | */ |
||
22 | public function fetch(int $id): ?TaxCode |
||
23 | { |
||
24 | /** @var TaxCode|null $fetch */ |
||
25 | $fetch = $this->_get('api/tax_code/' . $id); |
||
26 | return $fetch; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param array $data |
||
31 | * @return TaxCode|null |
||
32 | * @throws ApiException |
||
33 | * @throws OAuthException |
||
34 | */ |
||
35 | public function create(array $data): ?TaxCode |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param int $id |
||
44 | * @param array $data |
||
45 | * @return TaxCode|null |
||
46 | * @throws ApiException |
||
47 | * @throws OAuthException |
||
48 | */ |
||
49 | public function update(int $id, array $data): ?TaxCode |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @return ListResource |
||
58 | */ |
||
59 | public function all(): ListResource { |
||
63 |