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

Creatives   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 16 1
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