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

MarketModelPrices::setMin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 9.4285
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 MarketModelPrices extends Model
14
{
15
    /**
16
     * @var float
17
     */
18
    protected $min;
19
20
    /**
21
     * @var float
22
     */
23
    protected $max;
24
25
    /**
26
     * @var float
27
     */
28
    protected $avg;
29
30
    /**
31
     * Get min price
32
     *
33
     * @return float
34
     */
35 3
    public function getMin()
36
    {
37 3
        return $this->min;
38
    }
39
40
    /**
41
     * Set min price
42
     *
43
     * @param float $min
44
     * @return MarketModelPrices
45
     */
46
    public function setMin($min)
47
    {
48
        $this->min = $min;
49
        return $this;
50
    }
51
52
    /**
53
     * Get max price
54
     *
55
     * @return float
56
     */
57 3
    public function getMax()
58
    {
59 3
        return $this->max;
60
    }
61
62
    /**
63
     * Set max price
64
     *
65
     * @param float $max
66
     * @return MarketModelPrices
67
     */
68
    public function setMax($max)
69
    {
70
        $this->max = $max;
71
        return $this;
72
    }
73
74
    /**
75
     * Get avg price
76
     *
77
     * @return float
78
     */
79 3
    public function getAvg()
80
    {
81 3
        return $this->avg;
82
    }
83
84
    /**
85
     * Set avg price
86
     *
87
     * @param float $avg
88
     * @return MarketModelPrices
89
     */
90
    public function setAvg($avg)
91
    {
92
        $this->avg = $avg;
93
        return $this;
94
    }
95
}
96