Client   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 1
A updateBudget() 0 4 1
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