Code Duplication    Length = 232-233 lines in 3 locations

src/Yandex/Metrica/Stat/Models/ByTimeData.php 1 location

@@ 9-240 (lines=232) @@
6
use Yandex\Metrica\Stat\Models\Data;
7
use Yandex\Common\Model;
8
9
class ByTimeData extends Model
10
{
11
12
    protected $totalRows = null;
13
14
    protected $sampled = null;
15
16
    protected $sampleShare = null;
17
18
    protected $sampleSize = null;
19
20
    protected $sampleSpace = null;
21
22
    protected $dataLag = null;
23
24
    protected $query = null;
25
26
    protected $data = null;
27
28
    protected $totals = null;
29
30
    protected $mappingClasses = [
31
        'query' => 'Yandex\Metrica\Stat\Models\Query',
32
        'data' => 'Yandex\Metrica\Stat\Models\Data'
33
    ];
34
35
    protected $propNameMap = [
36
        'total_rows' =>'totalRows',
37
        'sample_share' => 'sampleShare',
38
        'sample_size' => 'sampleSize',
39
        'sample_space' => 'sampleSpace',
40
        'data_lag' => 'dataLag'
41
    ];
42
43
    /**
44
     * Retrieve the totalRows property
45
     *
46
     * @return int|null
47
     */
48
    public function getTotalRows()
49
    {
50
        return $this->totalRows;
51
    }
52
53
    /**
54
     * Set the totalRows property
55
     *
56
     * @param int $totalRows
57
     * @return $this
58
     */
59
    public function setTotalRows($totalRows)
60
    {
61
        $this->totalRows = $totalRows;
62
        return $this;
63
    }
64
65
    /**
66
     * Retrieve the sampled property
67
     *
68
     * @return bool|null
69
     */
70
    public function getSampled()
71
    {
72
        return $this->sampled;
73
    }
74
75
    /**
76
     * Set the sampled property
77
     *
78
     * @param bool $sampled
79
     * @return $this
80
     */
81
    public function setSampled($sampled)
82
    {
83
        $this->sampled = $sampled;
84
        return $this;
85
    }
86
87
    /**
88
     * Retrieve the sampleShare property
89
     *
90
     * @return bool|null
91
     */
92
    public function getSampleShare()
93
    {
94
        return $this->sampleShare;
95
    }
96
97
    /**
98
     * Set the sampleShare property
99
     *
100
     * @param bool $sampleShare
101
     * @return $this
102
     */
103
    public function setSampleShare($sampleShare)
104
    {
105
        $this->sampleShare = $sampleShare;
106
        return $this;
107
    }
108
109
    /**
110
     * Retrieve the sampleSize property
111
     *
112
     * @return int|null
113
     */
114
    public function getSampleSize()
115
    {
116
        return $this->sampleSize;
117
    }
118
119
    /**
120
     * Set the sampleSize property
121
     *
122
     * @param int $sampleSize
123
     * @return $this
124
     */
125
    public function setSampleSize($sampleSize)
126
    {
127
        $this->sampleSize = $sampleSize;
128
        return $this;
129
    }
130
131
    /**
132
     * Retrieve the sampleSpace property
133
     *
134
     * @return int|null
135
     */
136
    public function getSampleSpace()
137
    {
138
        return $this->sampleSpace;
139
    }
140
141
    /**
142
     * Set the sampleSpace property
143
     *
144
     * @param int $sampleSpace
145
     * @return $this
146
     */
147
    public function setSampleSpace($sampleSpace)
148
    {
149
        $this->sampleSpace = $sampleSpace;
150
        return $this;
151
    }
152
153
    /**
154
     * Retrieve the dataLag property
155
     *
156
     * @return int|null
157
     */
158
    public function getDataLag()
159
    {
160
        return $this->dataLag;
161
    }
162
163
    /**
164
     * Set the dataLag property
165
     *
166
     * @param int $dataLag
167
     * @return $this
168
     */
169
    public function setDataLag($dataLag)
170
    {
171
        $this->dataLag = $dataLag;
172
        return $this;
173
    }
174
175
    /**
176
     * Retrieve the query property
177
     *
178
     * @return Query|null
179
     */
180
    public function getQuery()
181
    {
182
        return $this->query;
183
    }
184
185
    /**
186
     * Set the query property
187
     *
188
     * @param Query $query
189
     * @return $this
190
     */
191
    public function setQuery($query)
192
    {
193
        $this->query = $query;
194
        return $this;
195
    }
196
197
    /**
198
     * Retrieve the data property
199
     *
200
     * @return Data|null
201
     */
202
    public function getData()
203
    {
204
        return $this->data;
205
    }
206
207
    /**
208
     * Set the data property
209
     *
210
     * @param Data $data
211
     * @return $this
212
     */
213
    public function setData($data)
214
    {
215
        $this->data = $data;
216
        return $this;
217
    }
218
219
    /**
220
     * Retrieve the totals property
221
     *
222
     * @return array|null
223
     */
224
    public function getTotals()
225
    {
226
        return $this->totals;
227
    }
228
229
    /**
230
     * Set the totals property
231
     *
232
     * @param array $totals
233
     * @return $this
234
     */
235
    public function setTotals($totals)
236
    {
237
        $this->totals = $totals;
238
        return $this;
239
    }
240
}
241

src/Yandex/Metrica/Stat/Models/Comparison.php 1 location

@@ 10-242 (lines=233) @@
7
use Yandex\Metrica\Stat\Models\ComparisonTotals;
8
use Yandex\Common\Model;
9
10
class Comparison extends Model
11
{
12
13
    protected $totalRows = null;
14
15
    protected $sampled = null;
16
17
    protected $sampleShare = null;
18
19
    protected $sampleSize = null;
20
21
    protected $sampleSpace = null;
22
23
    protected $dataLag = null;
24
25
    protected $query = null;
26
27
    protected $data = null;
28
29
    protected $totals = null;
30
31
    protected $mappingClasses = [
32
        'query' => 'Yandex\Metrica\Stat\Models\ComparisonQuery',
33
        'data' => 'Yandex\Metrica\Stat\Models\ComparisonData',
34
        'totals' => 'Yandex\Metrica\Stat\Models\ComparisonTotals'
35
    ];
36
37
    protected $propNameMap = [
38
        'total_rows' => 'totalRows',
39
        'sample_share' => 'sampleShare',
40
        'sample_size' => 'sampleSize',
41
        'sample_space' => 'sampleSpace',
42
        'data_lag' => 'dataLag'
43
    ];
44
45
    /**
46
     * Retrieve the totalRows property
47
     *
48
     * @return int|null
49
     */
50
    public function getTotalRows()
51
    {
52
        return $this->totalRows;
53
    }
54
55
    /**
56
     * Set the totalRows property
57
     *
58
     * @param int $totalRows
59
     * @return $this
60
     */
61
    public function setTotalRows($totalRows)
62
    {
63
        $this->totalRows = $totalRows;
64
        return $this;
65
    }
66
67
    /**
68
     * Retrieve the sampled property
69
     *
70
     * @return bool|null
71
     */
72
    public function getSampled()
73
    {
74
        return $this->sampled;
75
    }
76
77
    /**
78
     * Set the sampled property
79
     *
80
     * @param bool $sampled
81
     * @return $this
82
     */
83
    public function setSampled($sampled)
84
    {
85
        $this->sampled = $sampled;
86
        return $this;
87
    }
88
89
    /**
90
     * Retrieve the sampleShare property
91
     *
92
     * @return double|null
93
     */
94
    public function getSampleShare()
95
    {
96
        return $this->sampleShare;
97
    }
98
99
    /**
100
     * Set the sampleShare property
101
     *
102
     * @param double $sampleShare
103
     * @return $this
104
     */
105
    public function setSampleShare($sampleShare)
106
    {
107
        $this->sampleShare = $sampleShare;
108
        return $this;
109
    }
110
111
    /**
112
     * Retrieve the sampleSize property
113
     *
114
     * @return int|null
115
     */
116
    public function getSampleSize()
117
    {
118
        return $this->sampleSize;
119
    }
120
121
    /**
122
     * Set the sampleSize property
123
     *
124
     * @param int $sampleSize
125
     * @return $this
126
     */
127
    public function setSampleSize($sampleSize)
128
    {
129
        $this->sampleSize = $sampleSize;
130
        return $this;
131
    }
132
133
    /**
134
     * Retrieve the sampleSpace property
135
     *
136
     * @return int|null
137
     */
138
    public function getSampleSpace()
139
    {
140
        return $this->sampleSpace;
141
    }
142
143
    /**
144
     * Set the sampleSpace property
145
     *
146
     * @param int $sampleSpace
147
     * @return $this
148
     */
149
    public function setSampleSpace($sampleSpace)
150
    {
151
        $this->sampleSpace = $sampleSpace;
152
        return $this;
153
    }
154
155
    /**
156
     * Retrieve the dataLag property
157
     *
158
     * @return int|null
159
     */
160
    public function getDataLag()
161
    {
162
        return $this->dataLag;
163
    }
164
165
    /**
166
     * Set the dataLag property
167
     *
168
     * @param int $dataLag
169
     * @return $this
170
     */
171
    public function setDataLag($dataLag)
172
    {
173
        $this->dataLag = $dataLag;
174
        return $this;
175
    }
176
177
    /**
178
     * Retrieve the query property
179
     *
180
     * @return ComparisonQuery|null
181
     */
182
    public function getQuery()
183
    {
184
        return $this->query;
185
    }
186
187
    /**
188
     * Set the query property
189
     *
190
     * @param ComparisonQuery $query
191
     * @return $this
192
     */
193
    public function setQuery($query)
194
    {
195
        $this->query = $query;
196
        return $this;
197
    }
198
199
    /**
200
     * Retrieve the data property
201
     *
202
     * @return ComparisonData|null
203
     */
204
    public function getData()
205
    {
206
        return $this->data;
207
    }
208
209
    /**
210
     * Set the data property
211
     *
212
     * @param ComparisonData $data
213
     * @return $this
214
     */
215
    public function setData($data)
216
    {
217
        $this->data = $data;
218
        return $this;
219
    }
220
221
    /**
222
     * Retrieve the totals property
223
     *
224
     * @return ComparisonTotals|null
225
     */
226
    public function getTotals()
227
    {
228
        return $this->totals;
229
    }
230
231
    /**
232
     * Set the totals property
233
     *
234
     * @param ComparisonTotals $totals
235
     * @return $this
236
     */
237
    public function setTotals($totals)
238
    {
239
        $this->totals = $totals;
240
        return $this;
241
    }
242
}
243

src/Yandex/Metrica/Stat/Models/DrillDownComparison.php 1 location

@@ 10-242 (lines=233) @@
7
use Yandex\Metrica\Stat\Models\ComparisonTotals;
8
use Yandex\Common\Model;
9
10
class DrillDownComparison extends Model
11
{
12
13
    protected $totalRows = null;
14
15
    protected $sampled = null;
16
17
    protected $sampleShare = null;
18
19
    protected $sampleSize = null;
20
21
    protected $sampleSpace = null;
22
23
    protected $dataLag = null;
24
25
    protected $query = null;
26
27
    protected $data = null;
28
29
    protected $totals = null;
30
31
    protected $mappingClasses = [
32
        'query' => 'Yandex\Metrica\Stat\Models\ComparisonQuery',
33
        'data' => 'Yandex\Metrica\Stat\Models\DrillDownComparisonData',
34
        'totals' => 'Yandex\Metrica\Stat\Models\ComparisonTotals'
35
    ];
36
37
    protected $propNameMap = [
38
        'total_rows' => 'totalRows',
39
        'sample_share' => 'sampleShare',
40
        'sample_size' => 'sampleSize',
41
        'sample_space' => 'sampleSpace',
42
        'data_lag' => 'dataLag'
43
    ];
44
45
    /**
46
     * Retrieve the totalRows property
47
     *
48
     * @return int|null
49
     */
50
    public function getTotalRows()
51
    {
52
        return $this->totalRows;
53
    }
54
55
    /**
56
     * Set the totalRows property
57
     *
58
     * @param int $totalRows
59
     * @return $this
60
     */
61
    public function setTotalRows($totalRows)
62
    {
63
        $this->totalRows = $totalRows;
64
        return $this;
65
    }
66
67
    /**
68
     * Retrieve the sampled property
69
     *
70
     * @return bool|null
71
     */
72
    public function getSampled()
73
    {
74
        return $this->sampled;
75
    }
76
77
    /**
78
     * Set the sampled property
79
     *
80
     * @param bool $sampled
81
     * @return $this
82
     */
83
    public function setSampled($sampled)
84
    {
85
        $this->sampled = $sampled;
86
        return $this;
87
    }
88
89
    /**
90
     * Retrieve the sampleShare property
91
     *
92
     * @return double|null
93
     */
94
    public function getSampleShare()
95
    {
96
        return $this->sampleShare;
97
    }
98
99
    /**
100
     * Set the sampleShare property
101
     *
102
     * @param double $sampleShare
103
     * @return $this
104
     */
105
    public function setSampleShare($sampleShare)
106
    {
107
        $this->sampleShare = $sampleShare;
108
        return $this;
109
    }
110
111
    /**
112
     * Retrieve the sampleSize property
113
     *
114
     * @return int|null
115
     */
116
    public function getSampleSize()
117
    {
118
        return $this->sampleSize;
119
    }
120
121
    /**
122
     * Set the sampleSize property
123
     *
124
     * @param int $sampleSize
125
     * @return $this
126
     */
127
    public function setSampleSize($sampleSize)
128
    {
129
        $this->sampleSize = $sampleSize;
130
        return $this;
131
    }
132
133
    /**
134
     * Retrieve the sampleSpace property
135
     *
136
     * @return int|null
137
     */
138
    public function getSampleSpace()
139
    {
140
        return $this->sampleSpace;
141
    }
142
143
    /**
144
     * Set the sampleSpace property
145
     *
146
     * @param int $sampleSpace
147
     * @return $this
148
     */
149
    public function setSampleSpace($sampleSpace)
150
    {
151
        $this->sampleSpace = $sampleSpace;
152
        return $this;
153
    }
154
155
    /**
156
     * Retrieve the dataLag property
157
     *
158
     * @return int|null
159
     */
160
    public function getDataLag()
161
    {
162
        return $this->dataLag;
163
    }
164
165
    /**
166
     * Set the dataLag property
167
     *
168
     * @param int $dataLag
169
     * @return $this
170
     */
171
    public function setDataLag($dataLag)
172
    {
173
        $this->dataLag = $dataLag;
174
        return $this;
175
    }
176
177
    /**
178
     * Retrieve the query property
179
     *
180
     * @return ComparisonQuery|null
181
     */
182
    public function getQuery()
183
    {
184
        return $this->query;
185
    }
186
187
    /**
188
     * Set the query property
189
     *
190
     * @param ComparisonQuery $query
191
     * @return $this
192
     */
193
    public function setQuery($query)
194
    {
195
        $this->query = $query;
196
        return $this;
197
    }
198
199
    /**
200
     * Retrieve the data property
201
     *
202
     * @return DrillDownComparisonData|null
203
     */
204
    public function getData()
205
    {
206
        return $this->data;
207
    }
208
209
    /**
210
     * Set the data property
211
     *
212
     * @param DrillDownComparisonData $data
213
     * @return $this
214
     */
215
    public function setData($data)
216
    {
217
        $this->data = $data;
218
        return $this;
219
    }
220
221
    /**
222
     * Retrieve the totals property
223
     *
224
     * @return ComparisonTotals|null
225
     */
226
    public function getTotals()
227
    {
228
        return $this->totals;
229
    }
230
231
    /**
232
     * Set the totals property
233
     *
234
     * @param ComparisonTotals $totals
235
     * @return $this
236
     */
237
    public function setTotals($totals)
238
    {
239
        $this->totals = $totals;
240
        return $this;
241
    }
242
}
243