Completed
Push — master ( 427e7d...a0cbad )
by Dmitriy
8s
created

ManagementClient::goals()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Yandex PHP Library
4
 *
5
 * @copyright NIX Solutions Ltd.
6
 * @link https://github.com/nixsolutions/yandex-php-library
7
 */
8
9
/**
10
 * @namespace
11
 */
12
namespace Yandex\Metrica\Management;
13
14
use Yandex\Metrica\MetricaClient;
15
16
/**
17
 * Class ManagementClient
18
 *
19
 * @category Yandex
20
 * @package Metrica
21
 *
22
 * @author   Tanya Kalashnik
23
 * @created  18.07.14 12:58
24
 */
25
class ManagementClient extends MetricaClient
26
{
27
28
    /**
29
     * API domain
30
     *
31
     * @var string
32
     */
33
    protected $serviceDomain = 'api-metrika.yandex.ru/management/v1';
34
35
36
    /**
37
     * @return CountersClient
38
     */
39 1
    public function counters()
40
    {
41 1
        return new CountersClient($this->getAccessToken());
42
    }
43
44
    /**
45
     * @return GoalsClient
46
     */
47 1
    public function goals()
48
    {
49 1
        return new GoalsClient($this->getAccessToken());
50
    }
51
52
    /**
53
     * @return FiltersClient
54
     */
55 1
    public function filters()
56
    {
57 1
        return new FiltersClient($this->getAccessToken());
58
    }
59
60
61
    /**
62
     * @return OperationsClient
63
     */
64 1
    public function operations()
65
    {
66 1
        return new OperationsClient($this->getAccessToken());
67
    }
68
69
70
    /**
71
     * @return GrantsClient
72
     */
73 1
    public function grants()
74
    {
75 1
        return new GrantsClient($this->getAccessToken());
76
    }
77
78
79
    /**
80
     * @return DelegatesClient
81
     */
82 1
    public function delegates()
83
    {
84 1
        return new DelegatesClient($this->getAccessToken());
85
    }
86
87
88
    /**
89
     * @return AccountsClient
90
     */
91 1
    public function accounts()
92
    {
93 1
        return new AccountsClient($this->getAccessToken());
94
    }
95
}
96