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

Campaign   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getDomain() 0 4 1
A getState() 0 4 1
A getStateReasons() 0 4 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
     * 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