Passed
Push — master ( 80a2af...b754d5 )
by Fabian
51s
created

AskBidModel::getPrice()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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