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

TurboPages::get()   A

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 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