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

MarketModelPrices::setAvg()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Common\Model;
6
7
class MarketModelPrices extends Model
8
{
9
    /**
10
     * @var float
11
     */
12
    protected $min;
13
14
    /**
15
     * @var float
16
     */
17
    protected $max;
18
19
    /**
20
     * @var float
21
     */
22
    protected $avg;
23
24
    /**
25
     * Get min price
26
     *
27
     * @return float
28
     */
29
    public function getMin()
30
    {
31
        return $this->min;
32
    }
33
34
    /**
35
     * Set min price
36
     *
37
     * @param float $min
38
     * @return MarketModelPrices
39
     */
40
    public function setMin($min)
41
    {
42
        $this->min = $min;
43
        return $this;
44
    }
45
46
    /**
47
     * Get max price
48
     *
49
     * @return float
50
     */
51
    public function getMax()
52
    {
53
        return $this->max;
54
    }
55
56
    /**
57
     * Set max price
58
     *
59
     * @param float $max
60
     * @return MarketModelPrices
61
     */
62
    public function setMax($max)
63
    {
64
        $this->max = $max;
65
        return $this;
66
    }
67
68
    /**
69
     * Get avg price
70
     *
71
     * @return float
72
     */
73
    public function getAvg()
74
    {
75
        return $this->avg;
76
    }
77
78
    /**
79
     * Set avg price
80
     *
81
     * @param float $avg
82
     * @return MarketModelPrices
83
     */
84
    public function setAvg($avg)
85
    {
86
        $this->avg = $avg;
87
        return $this;
88
    }
89
}
90