Passed
Push — master ( 5f4c59...0a76e5 )
by Fabian
01:35
created

AskBidModel::__construct()   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 3
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author fabian.hanisch
4
 * @since  2017-07-17
5
 */
6
7
namespace HanischIt\KrakenApi\Model\GetTicker;
8
9
/**
10
 * Class AskBidModel
11
 *
12
 * @package HanischIt\KrakenApi\Model\GetTicker
13
 */
14
class AskBidModel
15
{
16
    /**
17
     * @var float
18
     */
19
    private $price;
20
    /**
21
     * @var float
22
     */
23
    private $wholeLotVolume;
24
    /**
25
     * @var float
26
     */
27
    private $lotVolume;
28
29
    /**
30
     * AskBidModel constructor.
31
     *
32
     * @param float $price
33
     * @param float $wholeLotVolume
34
     * @param float $lotVolume
35
     */
36
    public function __construct($price, $wholeLotVolume, $lotVolume)
37
    {
38
        $this->price = $price;
39
        $this->wholeLotVolume = $wholeLotVolume;
40
        $this->lotVolume = $lotVolume;
41
    }
42
43
    /**
44
     * @return float
45
     */
46
    public function getPrice()
47
    {
48
        return $this->price;
49
    }
50
51
    /**
52
     * @return float
53
     */
54
    public function getWholeLotVolume()
55
    {
56
        return $this->wholeLotVolume;
57
    }
58
59
    /**
60
     * @return float
61
     */
62
    public function getLotVolume()
63
    {
64
        return $this->lotVolume;
65
    }
66
}
67