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