Completed
Pull Request — master (#159)
by
unknown
09:00
created

Goal::getFlag()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Metrica\Management\Models;
4
5
use Yandex\Metrica\Management\Models\Conditions;
6
use Yandex\Common\Model;
7
8
class Goal extends Model
9
{
10
11
    protected $id = null;
12
13
    protected $name = null;
14
15
    protected $type = null;
16
17
    protected $class = null;
18
19
    protected $flag = null;
20
21
    protected $conditions = null;
22
23
    protected $mappingClasses = [
24
        'conditions' => 'Yandex\Metrica\Management\Models\Conditions'
25
    ];
26
27
    protected $propNameMap = [];
28
29
    /**
30
     * Retrieve the id property
31
     *
32
     * @return int|null
33
     */
34 5
    public function getId()
35
    {
36 5
        return $this->id;
37
    }
38
39
    /**
40
     * Set the id property
41
     *
42
     * @param int $id
43
     * @return $this
44
     */
45 1
    public function setId($id)
46
    {
47 1
        $this->id = $id;
48 1
        return $this;
49
    }
50
51
    /**
52
     * Retrieve the name property
53
     *
54
     * @return string|null
55
     */
56 5
    public function getName()
57
    {
58 5
        return $this->name;
59
    }
60
61
    /**
62
     * Set the name property
63
     *
64
     * @param string $name
65
     * @return $this
66
     */
67 1
    public function setName($name)
68
    {
69 1
        $this->name = $name;
70 1
        return $this;
71
    }
72
73
    /**
74
     * Retrieve the type property
75
     *
76
     * @return string|null
77
     */
78 5
    public function getType()
79
    {
80 5
        return $this->type;
81
    }
82
83
    /**
84
     * Set the type property
85
     *
86
     * @param string $type
87
     * @return $this
88
     */
89 1
    public function setType($type)
90
    {
91 1
        $this->type = $type;
92 1
        return $this;
93
    }
94
95
    /**
96
     * Retrieve the class property
97
     *
98
     * @return int|null
99
     */
100 5
    public function getClass()
101
    {
102 5
        return $this->class;
103
    }
104
105
    /**
106
     * Set the class property
107
     *
108
     * @param int $class
109
     * @return $this
110
     */
111 1
    public function setClass($class)
112
    {
113 1
        $this->class = $class;
114 1
        return $this;
115
    }
116
117
    /**
118
     * Retrieve the flag property
119
     *
120
     * @return int|null
121
     */
122 5
    public function getFlag()
123
    {
124 5
        return $this->flag;
125
    }
126
127
    /**
128
     * Set the flag property
129
     *
130
     * @param int $flag
131
     * @return $this
132
     */
133 1
    public function setFlag($flag)
134
    {
135 1
        $this->flag = $flag;
136 1
        return $this;
137
    }
138
139
    /**
140
     * Retrieve the conditions property
141
     *
142
     * @return Conditions|null
143
     */
144 5
    public function getConditions()
145
    {
146 5
        return $this->conditions;
147
    }
148
149
    /**
150
     * Set the conditions property
151
     *
152
     * @param Conditions $conditions
153
     * @return $this
154
     */
155 1
    public function setConditions($conditions)
156
    {
157 1
        $this->conditions = $conditions;
158 1
        return $this;
159
    }
160
}
161