Completed
Push — master ( 201238...507368 )
by Aleksander
05:51
created

GetMarketModelsResponse::getModels()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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