Code Duplication    Length = 233-233 lines in 2 locations

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