| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class OrganizationUsers |
||
| 13 | { |
||
| 14 | public const MAX_GET_USERS = 100; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Client |
||
| 18 | */ |
||
| 19 | private $client; |
||
| 20 | |||
| 21 | 1 | public function __construct(Client $client) |
|
| 22 | { |
||
| 23 | 1 | $this->client = $client; |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get users and titles of organization |
||
| 28 | * https://cybozudev.zendesk.com/hc/ja/articles/202124774#step2 |
||
| 29 | * |
||
| 30 | * @param string $code |
||
| 31 | * @param int $offset |
||
| 32 | * @param int $limit |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | 1 | public function get($code, $offset = 0, $limit = self::MAX_GET_USERS): array |
|
| 49 | } |
||
| 50 | } |
||
| 51 |