@@ 9-66 (lines=58) @@ | ||
6 | use Yandex\Metrica\Stat\Models\ComparisonMetrics; |
|
7 | use Yandex\Common\Model; |
|
8 | ||
9 | class ComparisonItems extends Model |
|
10 | { |
|
11 | ||
12 | protected $dimensions = null; |
|
13 | ||
14 | protected $metrics = null; |
|
15 | ||
16 | protected $mappingClasses = [ |
|
17 | 'dimensions' => 'Yandex\Metrica\Stat\Models\Dimensions', |
|
18 | 'metrics' => 'Yandex\Metrica\Stat\Models\ComparisonMetrics' |
|
19 | ]; |
|
20 | ||
21 | protected $propNameMap = []; |
|
22 | ||
23 | /** |
|
24 | * Retrieve the dimensions property |
|
25 | * |
|
26 | * @return Dimensions|null |
|
27 | */ |
|
28 | public function getDimensions() |
|
29 | { |
|
30 | return $this->dimensions; |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * Set the dimensions property |
|
35 | * |
|
36 | * @param Dimensions $dimensions |
|
37 | * @return $this |
|
38 | */ |
|
39 | public function setDimensions($dimensions) |
|
40 | { |
|
41 | $this->dimensions = $dimensions; |
|
42 | return $this; |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * Retrieve the metrics property |
|
47 | * |
|
48 | * @return ComparisonMetrics|null |
|
49 | */ |
|
50 | public function getMetrics() |
|
51 | { |
|
52 | return $this->metrics; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * Set the metrics property |
|
57 | * |
|
58 | * @param ComparisonMetrics $metrics |
|
59 | * @return $this |
|
60 | */ |
|
61 | public function setMetrics($metrics) |
|
62 | { |
|
63 | $this->metrics = $metrics; |
|
64 | return $this; |
|
65 | } |
|
66 | } |
|
67 |
@@ 8-64 (lines=57) @@ | ||
5 | use Yandex\Metrica\Stat\Models\Dimensions; |
|
6 | use Yandex\Common\Model; |
|
7 | ||
8 | class Items extends Model |
|
9 | { |
|
10 | ||
11 | protected $dimensions = null; |
|
12 | ||
13 | protected $metrics = null; |
|
14 | ||
15 | protected $mappingClasses = [ |
|
16 | 'dimensions' => 'Yandex\Metrica\Stat\Models\Dimensions' |
|
17 | ]; |
|
18 | ||
19 | protected $propNameMap = []; |
|
20 | ||
21 | /** |
|
22 | * Retrieve the dimensions property |
|
23 | * |
|
24 | * @return Dimensions|null |
|
25 | */ |
|
26 | public function getDimensions() |
|
27 | { |
|
28 | return $this->dimensions; |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * Set the dimensions property |
|
33 | * |
|
34 | * @param Dimensions $dimensions |
|
35 | * @return $this |
|
36 | */ |
|
37 | public function setDimensions($dimensions) |
|
38 | { |
|
39 | $this->dimensions = $dimensions; |
|
40 | return $this; |
|
41 | } |
|
42 | ||
43 | /** |
|
44 | * Retrieve the metrics property |
|
45 | * |
|
46 | * @return array|null |
|
47 | */ |
|
48 | public function getMetrics() |
|
49 | { |
|
50 | return $this->metrics; |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * Set the metrics property |
|
55 | * |
|
56 | * @param array $metrics |
|
57 | * @return $this |
|
58 | */ |
|
59 | public function setMetrics($metrics) |
|
60 | { |
|
61 | $this->metrics = $metrics; |
|
62 | return $this; |
|
63 | } |
|
64 | } |
|
65 |