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

AskBidModel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 51
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

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