Completed
Push — master ( eec90d...2946e6 )
by Dmitriy
11s
created

Campaign   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 103
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 40%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 103
ccs 8
cts 20
cp 0.4
rs 10
wmc 8
lcom 0
cbo 1

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
A getDomain() 0 4 1
A setDomain() 0 5 1
A getState() 0 4 1
A setState() 0 5 1
A getStateReasons() 0 4 1
A setStateReasons() 0 5 1
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
     * Set the id property
34
     *
35
     * @param int $id
36
     * @return $this
37
     */
38
    public function setId($id)
39
    {
40
        $this->id = $id;
41
        return $this;
42
    }
43
44
    /**
45
     * Retrieve the domain property
46
     *
47
     * @return string|null
48
     */
49 1
    public function getDomain()
50
    {
51 1
        return $this->domain;
52
    }
53
54
    /**
55
     * Set the domain property
56
     *
57
     * @param string $domain
58
     * @return $this
59
     */
60
    public function setDomain($domain)
61
    {
62
        $this->domain = $domain;
63
        return $this;
64
    }
65
66
    /**
67
     * Retrieve the state property
68
     *
69
     * @return int|null
70
     */
71 1
    public function getState()
72
    {
73 1
        return $this->state;
74
    }
75
76
    /**
77
     * Set the state property
78
     *
79
     * @param int $state
80
     * @return $this
81
     */
82
    public function setState($state)
83
    {
84
        $this->state = $state;
85
        return $this;
86
    }
87
88
    /**
89
     * Retrieve the stateReasons property
90
     *
91
     * @return array|null
92
     */
93 1
    public function getStateReasons()
94
    {
95 1
        return $this->stateReasons;
96
    }
97
98
    /**
99
     * Set the stateReasons property
100
     *
101
     * @param array $stateReasons
102
     * @return $this
103
     */
104
    public function setStateReasons($stateReasons)
105
    {
106
        $this->stateReasons = $stateReasons;
107
        return $this;
108
    }
109
}
110