Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class UserGroups |
||
9 | { |
||
10 | /** |
||
11 | * @var Csv |
||
12 | */ |
||
13 | private $csv; |
||
14 | |||
15 | 1 | public function __construct(Csv $csv) |
|
16 | { |
||
17 | 1 | $this->csv = $csv; |
|
18 | } |
||
19 | |||
20 | /** |
||
21 | * Get userGroups by csv |
||
22 | * https://cybozudev.zendesk.com/hc/ja/articles/202124784 |
||
23 | * |
||
24 | * @return string |
||
25 | * @throws \InvalidArgumentException |
||
26 | */ |
||
27 | 1 | public function getByCsv(): string |
|
28 | { |
||
29 | 1 | return $this->csv->get('userGroups'); |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * Post userGroups by csv |
||
34 | * https://cybozudev.zendesk.com/hc/ja/articles/202362890 |
||
35 | * |
||
36 | * @param $filename |
||
37 | * @return int |
||
38 | * @throws \InvalidArgumentException |
||
39 | */ |
||
40 | 1 | public function postByCsv($filename): int |
|
43 | } |
||
44 | } |
||
45 |