Completed
Pull Request — master (#179)
by
unknown
08:15
created

GetMarketModelsResponse::getModels()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Common\Model;
6
7
class GetMarketModelsResponse extends Model
8
{
9
    /**
10
     * @var MarketModels
11
     */
12
    protected $models;
13
14
    /**
15
     * @var Pager
16
     */
17
    protected $pager;
18
19
    protected $mappingClasses = [
20
        'models' => MarketModels::class,
21
        'pager' => Pager::class,
22
    ];
23
24
    /**
25
     * @var int
26
     */
27
    protected $regionId;
28
29
    /**
30
     * @var string
31
     */
32
    protected $currency;
33
34
    /**
35
     * Retrieve the models property
36
     *
37
     * @return MarketModels
38
     */
39
    public function getModels()
40
    {
41
        return $this->models;
42
    }
43
44
    /**
45
     * Set the models property
46
     *
47
     * @param MarketModels $models
48
     * @return GetMarketModelsResponse
49
     */
50
    public function setModels($models)
51
    {
52
        $this->models = $models;
53
        return $this;
54
    }
55
56
    /**
57
     * Retrieve the pager property
58
     *
59
     * @return Pager|null
60
     */
61
    public function getPager()
62
    {
63
        return $this->pager;
64
    }
65
66
    /**
67
     * Set the pager property
68
     *
69
     * @param Pager $pager
70
     * @return GetMarketModelsResponse
71
     */
72
    public function setPager($pager)
73
    {
74
        $this->pager = $pager;
75
        return $this;
76
    }
77
78
    /**
79
     * Get region ID
80
     *
81
     * @return int
82
     */
83
    public function getRegionId()
84
    {
85
        return $this->regionId;
86
    }
87
88
    /**
89
     * Set region ID
90
     *
91
     * @param int $regionId
92
     * @return GetMarketModelsResponse
93
     */
94
    public function setRegionId($regionId)
95
    {
96
        $this->regionId = $regionId;
97
        return $this;
98
    }
99
100
    /**
101
     * Get currency
102
     *
103
     * @return string
104
     */
105
    public function getCurrency()
106
    {
107
        return $this->currency;
108
    }
109
110
    /**
111
     * Set currency
112
     *
113
     * @param string $currency
114
     * @return GetMarketModelsResponse
115
     */
116
    public function setCurrency($currency)
117
    {
118
        $this->currency = $currency;
119
        return $this;
120
    }
121
}
122