| @@ 9-90 (lines=82) @@ | ||
| 6 | use Yandex\Metrica\Stat\Models\ComparisonMetrics; |
|
| 7 | use Yandex\Common\Model; |
|
| 8 | ||
| 9 | class DrillDownComparisonItems extends Model |
|
| 10 | { |
|
| 11 | ||
| 12 | protected $dimension = null; |
|
| 13 | ||
| 14 | protected $metrics = null; |
|
| 15 | ||
| 16 | protected $expand = null; |
|
| 17 | ||
| 18 | protected $mappingClasses = [ |
|
| 19 | 'dimension' => 'Yandex\Metrica\Stat\Models\Dimension', |
|
| 20 | 'metrics' => 'Yandex\Metrica\Stat\Models\ComparisonMetrics' |
|
| 21 | ]; |
|
| 22 | ||
| 23 | protected $propNameMap = []; |
|
| 24 | ||
| 25 | /** |
|
| 26 | * Retrieve the dimension property |
|
| 27 | * |
|
| 28 | * @return Dimension|null |
|
| 29 | */ |
|
| 30 | public function getDimension() |
|
| 31 | { |
|
| 32 | return $this->dimension; |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Set the dimension property |
|
| 37 | * |
|
| 38 | * @param Dimension $dimension |
|
| 39 | * @return $this |
|
| 40 | */ |
|
| 41 | public function setDimension($dimension) |
|
| 42 | { |
|
| 43 | $this->dimension = $dimension; |
|
| 44 | return $this; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * Retrieve the metrics property |
|
| 49 | * |
|
| 50 | * @return ComparisonMetrics|null |
|
| 51 | */ |
|
| 52 | public function getMetrics() |
|
| 53 | { |
|
| 54 | return $this->metrics; |
|
| 55 | } |
|
| 56 | ||
| 57 | /** |
|
| 58 | * Set the metrics property |
|
| 59 | * |
|
| 60 | * @param ComparisonMetrics $metrics |
|
| 61 | * @return $this |
|
| 62 | */ |
|
| 63 | public function setMetrics($metrics) |
|
| 64 | { |
|
| 65 | $this->metrics = $metrics; |
|
| 66 | return $this; |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * Retrieve the expand property |
|
| 71 | * |
|
| 72 | * @return bool|null |
|
| 73 | */ |
|
| 74 | public function getExpand() |
|
| 75 | { |
|
| 76 | return $this->expand; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * Set the expand property |
|
| 81 | * |
|
| 82 | * @param bool $expand |
|
| 83 | * @return $this |
|
| 84 | */ |
|
| 85 | public function setExpand($expand) |
|
| 86 | { |
|
| 87 | $this->expand = $expand; |
|
| 88 | return $this; |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||
| @@ 8-88 (lines=81) @@ | ||
| 5 | use Yandex\Metrica\Stat\Models\Dimension; |
|
| 6 | use Yandex\Common\Model; |
|
| 7 | ||
| 8 | class DrillDownItems extends Model |
|
| 9 | { |
|
| 10 | ||
| 11 | protected $dimension = null; |
|
| 12 | ||
| 13 | protected $metrics = null; |
|
| 14 | ||
| 15 | protected $expand = null; |
|
| 16 | ||
| 17 | protected $mappingClasses = [ |
|
| 18 | 'dimension' => 'Yandex\Metrica\Stat\Models\Dimension' |
|
| 19 | ]; |
|
| 20 | ||
| 21 | protected $propNameMap = []; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * Retrieve the dimension property |
|
| 25 | * |
|
| 26 | * @return Dimension|null |
|
| 27 | */ |
|
| 28 | public function getDimension() |
|
| 29 | { |
|
| 30 | return $this->dimension; |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * Set the dimension property |
|
| 35 | * |
|
| 36 | * @param Dimension $dimension |
|
| 37 | * @return $this |
|
| 38 | */ |
|
| 39 | public function setDimension($dimension) |
|
| 40 | { |
|
| 41 | $this->dimension = $dimension; |
|
| 42 | return $this; |
|
| 43 | } |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Retrieve the metrics property |
|
| 47 | * |
|
| 48 | * @return array|null |
|
| 49 | */ |
|
| 50 | public function getMetrics() |
|
| 51 | { |
|
| 52 | return $this->metrics; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Set the metrics property |
|
| 57 | * |
|
| 58 | * @param array $metrics |
|
| 59 | * @return $this |
|
| 60 | */ |
|
| 61 | public function setMetrics($metrics) |
|
| 62 | { |
|
| 63 | $this->metrics = $metrics; |
|
| 64 | return $this; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Retrieve the expand property |
|
| 69 | * |
|
| 70 | * @return bool|null |
|
| 71 | */ |
|
| 72 | public function getExpand() |
|
| 73 | { |
|
| 74 | return $this->expand; |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * Set the expand property |
|
| 79 | * |
|
| 80 | * @param bool $expand |
|
| 81 | * @return $this |
|
| 82 | */ |
|
| 83 | public function setExpand($expand) |
|
| 84 | { |
|
| 85 | $this->expand = $expand; |
|
| 86 | return $this; |
|
| 87 | } |
|
| 88 | } |
|
| 89 | ||