CountersParams::setStatus()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Yandex\Metrica\Management\Models;
4
5
use Yandex\Common\Model;
6
7
class CountersParams extends Model
8
{
9
10
    protected $callback = null;
11
12
    protected $favorite = null;
13
14
    protected $field = null;
15
16
    protected $offset = null;
17
18
    protected $perPage = null;
19
20
    protected $permission = null;
21
22
    protected $searchString = null;
23
24
    protected $status = null;
25
26
    protected $type = null;
27
28
    protected $mappingClasses = [];
29
30
    protected $propNameMap = [
31
        'per_page' => 'perPage',
32
        'search_string' => 'searchString'
33
    ];
34
35
    /**
36
     * Retrieve the callback property
37
     *
38
     * @return string|null
39
     */
40
    public function getCallback()
41
    {
42
        return $this->callback;
43
    }
44
45
    /**
46
     * Set the callback property
47
     *
48
     * @param string $callback
49
     * @return $this
50
     */
51
    public function setCallback($callback)
52
    {
53
        $this->callback = $callback;
54
        return $this;
55
    }
56
57
    /**
58
     * Retrieve the favorite property
59
     *
60
     * @return bool|null
61
     */
62
    public function getFavorite()
63
    {
64
        return $this->favorite;
65
    }
66
67
    /**
68
     * Set the favorite property
69
     *
70
     * @param bool $favorite
71
     * @return $this
72
     */
73
    public function setFavorite($favorite)
74
    {
75
        $this->favorite = $favorite;
76
        return $this;
77
    }
78
79
    /**
80
     * Retrieve the field property
81
     *
82
     * @return string|null
83
     */
84
    public function getField()
85
    {
86
        return $this->field;
87
    }
88
89
    /**
90
     * Set the field property
91
     *
92
     * @param string $field
93
     * @return $this
94
     */
95
    public function setField($field)
96
    {
97
        $this->field = $field;
98
        return $this;
99
    }
100
101
    /**
102
     * Retrieve the offset property
103
     *
104
     * @return int|null
105
     */
106
    public function getOffset()
107
    {
108
        return $this->offset;
109
    }
110
111
    /**
112
     * Set the offset property
113
     *
114
     * @param int $offset
115
     * @return $this
116
     */
117
    public function setOffset($offset)
118
    {
119
        $this->offset = $offset;
120
        return $this;
121
    }
122
123
    /**
124
     * Retrieve the perPage property
125
     *
126
     * @return int|null
127
     */
128
    public function getPerPage()
129
    {
130
        return $this->perPage;
131
    }
132
133
    /**
134
     * Set the perPage property
135
     *
136
     * @param int $perPage
137
     * @return $this
138
     */
139
    public function setPerPage($perPage)
140
    {
141
        $this->perPage = $perPage;
142
        return $this;
143
    }
144
145
    /**
146
     * Retrieve the permission property
147
     *
148
     * @return string|null
149
     */
150
    public function getPermission()
151
    {
152
        return $this->permission;
153
    }
154
155
    /**
156
     * Set the permission property
157
     *
158
     * @param string $permission
159
     * @return $this
160
     */
161
    public function setPermission($permission)
162
    {
163
        $this->permission = $permission;
164
        return $this;
165
    }
166
167
    /**
168
     * Retrieve the searchString property
169
     *
170
     * @return string|null
171
     */
172
    public function getSearchString()
173
    {
174
        return $this->searchString;
175
    }
176
177
    /**
178
     * Set the searchString property
179
     *
180
     * @param string $searchString
181
     * @return $this
182
     */
183
    public function setSearchString($searchString)
184
    {
185
        $this->searchString = $searchString;
186
        return $this;
187
    }
188
189
    /**
190
     * Retrieve the status property
191
     *
192
     * @return string|null
193
     */
194
    public function getStatus()
195
    {
196
        return $this->status;
197
    }
198
199
    /**
200
     * Set the status property
201
     *
202
     * @param string $status
203
     * @return $this
204
     */
205
    public function setStatus($status)
206
    {
207
        $this->status = $status;
208
        return $this;
209
    }
210
211
    /**
212
     * Retrieve the type property
213
     *
214
     * @return string|null
215
     */
216
    public function getType()
217
    {
218
        return $this->type;
219
    }
220
221
    /**
222
     * Set the type property
223
     *
224
     * @param string $type
225
     * @return $this
226
     */
227
    public function setType($type)
228
    {
229
        $this->type = $type;
230
        return $this;
231
    }
232
}
233