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

StatClient   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
c 1
b 1
f 0
lcom 0
cbo 2
dl 0
loc 18
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A data() 0 4 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\Stat;
13
14
use Yandex\Metrica\MetricaClient;
15
16
class StatClient extends MetricaClient
17
{
18
19
    /**
20
     * API domain
21
     *
22
     * @var string
23
     */
24
    protected $serviceDomain = 'api-metrika.yandex.ru/stat/v1/data';
25
26
    /**
27
     * @return DataClient
28
     */
29 1
    public function data()
30
    {
31 1
        return new DataClient($this->getAccessToken());
32
    }
33
}
34