Completed
Pull Request — master (#195)
by
unknown
08:54
created

Campaign::setState()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 9.4285
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Common\Model;
6
7
class Campaign extends Model
8
{
9
10
    protected $id = null;
11
12
    protected $domain = null;
13
14
    protected $state = null;
15
16
    protected $stateReasons = null;
17
18
    protected $mappingClasses = [];
19
20
    protected $propNameMap = [];
21
22
    /**
23
     * Retrieve the id property
24
     *
25
     * @return int|null
26
     */
27 1
    public function getId()
28
    {
29 1
        return $this->id;
30
    }
31
32
    /**
33
     * Retrieve the domain property
34
     *
35
     * @return string|null
36
     */
37 1
    public function getDomain()
38
    {
39 1
        return $this->domain;
40
    }
41
42
    /**
43
     * Retrieve the state property
44
     *
45
     * @return int|null
46
     */
47 1
    public function getState()
48
    {
49 1
        return $this->state;
50
    }
51
52
    /**
53
     * Retrieve the stateReasons property
54
     *
55
     * @return array|null
56
     */
57 1
    public function getStateReasons()
58
    {
59 1
        return $this->stateReasons;
60
    }
61
}
62