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

AnalyticsClient   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
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 15
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A ga() 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\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