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

AnalyticsClient::ga()   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\Analytics;
13
14
use Yandex\Metrica\MetricaClient;
15
16
class AnalyticsClient extends MetricaClient
17
{
18
    /**
19
     * API domain
20
     *
21
     * @var string
22
     */
23
    protected $serviceDomain = 'api-metrika.yandex.ru/analytics/v3/data';
24
25
26 1
    public function ga()
27
    {
28 1
        return new GaClient($this->getAccessToken());
29
    }
30
}
31