Completed
Branch v4.x (712f3d)
by Dmitry
04:56
created

TurboPages   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 9 1
1
<?php
2
/**
3
 * @project yandex-direct-client
4
 */
5
6
namespace Gladyshev\Yandex\Direct\Service;
7
8
9
use function Gladyshev\Yandex\Direct\get_param_names;
10
11
/**
12
 * Class TurboPages
13
 *
14
 * @author Dmitry Gladyshev <[email protected]>
15
 * @since 2.5
16
 */
17
final class TurboPages extends \Gladyshev\Yandex\Direct\AbstractService
18
{
19
    /**
20
     * @param array $SelectionCriteria
21
     * @param array $FieldNames
22
     * @param array|null $Page
23
     * @return array|\DOMDocument
24
     *
25
     * @throws \Throwable
26
     *
27
     * @see https://tech.yandex.ru/direct/doc/ref-v5/turbopages/get-docpage/
28
     */
29
    public function get($SelectionCriteria, $FieldNames, $Page = null)
30
    {
31
        $params = compact(get_param_names(__METHOD__));
32
33
        return $this->call([
34
            'method' => 'get',
35
            'params' => $params
36
        ]);
37
    }
38
}
39