Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | abstract class AbstractRequestGroup |
||
8 | { |
||
9 | protected SproutsocialsApi $api; |
||
10 | |||
11 | /** |
||
12 | * AbstractRequestGroup constructor. |
||
13 | * @param SproutsocialsApi $api |
||
14 | */ |
||
15 | 5 | public function __construct(SproutsocialsApi $api) |
|
16 | { |
||
17 | 5 | $this->api = $api; |
|
18 | } |
||
19 | |||
20 | /** |
||
21 | * Get client instance |
||
22 | * @return SproutsocialsApi |
||
23 | */ |
||
24 | 1 | public function apiClient(): SproutsocialsApi |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * Get customer ID form options |
||
31 | * @param array $options |
||
32 | * |
||
33 | * @return int|mixed|string |
||
34 | * @throws \ThinkOne\LaravelSproutsocialsApi\NotSetCustomerException |
||
35 | */ |
||
36 | 3 | public function customerId($options = []) |
|
49 |