TurboPages::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
1
<?php
2
/**
3
 * @project yandex-direct-client
4
 */
5
6
namespace Yandex\Direct\Service;
7
8
use DOMDocument;
9
use Yandex\Direct\Exception\ErrorResponseException;
10
use Yandex\Direct\Exception\Exception;
11
use Yandex\Direct\Service;
12
use function Yandex\Direct\get_param_names;
13
14
/**
15
 * Class TurboPages
16
 *
17
 * @author Dmitry Gladyshev <[email protected]>
18
 * @since 2.5
19
 */
20
final class TurboPages extends Service
21
{
22
    /**
23
     * @param array $SelectionCriteria
24
     * @param array $FieldNames
25
     * @param array|null $Page
26
     * @return array|DOMDocument
27
     *
28
     * @throws ErrorResponseException
29
     * @throws Exception
30
     * @throws \ReflectionException
31
     *
32
     * @see https://tech.yandex.ru/direct/doc/ref-v5/turbopages/get-docpage/
33
     */
34
    public function get($SelectionCriteria, $FieldNames, $Page = null)
35
    {
36
        $params = compact(get_param_names(__METHOD__));
37
38
        return $this->request([
39
            'method' => 'get',
40
            'params' => $params
41
        ]);
42
    }
43
}
44