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