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

StatClient::data()   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\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