Test Setup Failed
Push — master ( 332ec9...f749ef )
by Ilham
03:19
created

Client   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A listIds() 0 3 1
1
<?php
2
/**
3
 * This file is part of the dingtalk.
4
 * User: Ilham Tahir <[email protected]>
5
 * This source file is subject to the MIT license that is bundled
6
 * with this source code in the file LICENSE.
7
 */
8
9
namespace Aplisin\DingTalk\Department;
10
11
use Aplisin\DingTalk\Kernel\BaseClient;
12
13
class Client extends BaseClient
14
{
15
    /**
16
     * @param int $id
17
     * @return \Aplisin\DingTalk\Kernel\Http\Response|\Aplisin\DingTalk\Kernel\Support\Collection|array|mixed|\Psr\Http\Message\ResponseInterface
18
     * @throws \GuzzleHttp\Exception\GuzzleException
19
     */
20
    public function listIds($id = 1)
21
    {
22
        return $this->httpGet('/department/list_ids', compact('id'));
23
    }
24
}
25