Client   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 3 1
1
<?php
2
3
namespace CloudyCity\KuaishouMarketingSDK\Tool\Region;
4
5
use CloudyCity\KuaishouMarketingSDK\Kernel\BaseClient;
6
7
class Client extends BaseClient
8
{
9
    /**
10
     * 获取地域信息.
11
     *
12
     * @link https://yiqixie.com/d/home/fcACuwYpSB3pFCkgbykniO7_h#
13
     *
14
     * @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\ApiException
15
     * @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\InvalidArgumentException
16
     * @throws \GuzzleHttp\Exception\GuzzleException
17
     *
18
     * @return array|\CloudyCity\KuaishouMarketingSDK\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
19
     */
20
    public function get()
21
    {
22
        return $this->httpGetJson('v1/region/list');
23
    }
24
}
25