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

AskBidModel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 51
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getWholeLotVolume() 0 3 1
A __construct() 0 5 1
A getPrice() 0 3 1
A getLotVolume() 0 3 1
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