Client::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace CloudyCity\UCMarketingSDK\Account;
4
5
use CloudyCity\UCMarketingSDK\Kernel\BaseClient;
6
7
class Client extends BaseClient
8
{
9
    /**
10
     * 获取账户信息.
11
     *
12
     * @throws \CloudyCity\UCMarketingSDK\Kernel\Exceptions\ApiException
13
     * @throws \CloudyCity\UCMarketingSDK\Kernel\Exceptions\InvalidArgumentException
14
     * @throws \GuzzleHttp\Exception\GuzzleException
15
     *
16
     * @return array|\Doctrine\Common\Collections\ArrayCollection|object|\Psr\Http\Message\ResponseInterface|string
17
     */
18
    public function get()
19
    {
20
        return $this->httpPostJson('account/getAccount');
21
    }
22
23
    /**
24
     * 更新账户预算.
25
     *
26
     * @param array $params
27
     *
28
     * @throws \CloudyCity\UCMarketingSDK\Kernel\Exceptions\ApiException
29
     * @throws \CloudyCity\UCMarketingSDK\Kernel\Exceptions\InvalidArgumentException
30
     * @throws \GuzzleHttp\Exception\GuzzleException
31
     *
32
     * @return array|\Doctrine\Common\Collections\ArrayCollection|object|\Psr\Http\Message\ResponseInterface|string
33
     */
34
    public function updateBudget(array $params)
35
    {
36
        return $this->httpPostJson('account/updateBudget', $params);
37
    }
38
}
39