Completed
Push — master ( f7db99...180f32 )
by Dmitry
03:22
created

Creatives::get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 6
dl 0
loc 16
rs 9.7333
c 0
b 0
f 0
1
<?php
2
/**
3
 * @project yandex-direct-client
4
 */
5
6
namespace Yandex\Direct\Service;
7
8
use Yandex\Direct\Service;
9
use function Yandex\Direct\get_param_names;
10
11
/**
12
 * Возвращает параметры креативов, отвечающих заданным критериям.
13
 *
14
 * @author Dmitry Gladyshev <[email protected]>
15
 */
16
final class Creatives extends Service
17
{
18
    /**
19
     * Возвращает параметры креативов, отвечающих заданным критериям.
20
     *
21
     * @param $SelectionCriteria
22
     * @param $FieldNames
23
     * @param $VideoExtensionCreativeFieldNames
24
     * @param $CpcVideoCreativeFieldNames
25
     * @param $CpmVideoCreativeFieldNames
26
     * @param $Page
27
     * @return array|\DOMDocument
28
     *
29
     * @throws \ReflectionException
30
     * @throws \Yandex\Direct\Exception\ErrorResponseException
31
     * @throws \Yandex\Direct\Exception\Exception
32
     */
33
    public function get(
34
        $SelectionCriteria,
35
        $FieldNames,
36
        $VideoExtensionCreativeFieldNames = null,
37
        $CpcVideoCreativeFieldNames = null,
38
        $CpmVideoCreativeFieldNames = null,
39
        $Page = null
40
    )
41
    {
42
        $params = compact(get_param_names(__METHOD__));
43
44
        return $this->request([
45
            'method' => 'get',
46
            'params' => $params
47
        ]);
48
    }
49
}
50