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

PriceVolumeModel::getPrice()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
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\Model\GetTicker;
8
9
/**
10
 * Class PriceVolumeModel
11
 *
12
 * @package HanischIt\KrakenApi\Model\GetTicker
13
 */
14
class PriceVolumeModel
15
{
16
    /**
17
     * @var float
18
     */
19
    private $price;
20
    /**
21
     * @var float
22
     */
23
    private $volume;
24
25
    /**
26
     * PriceVolumeModel constructor.
27
     *
28
     * @param float $price
29
     * @param float $volume
30
     */
31
    public function __construct($price, $volume)
32
    {
33
        $this->price = $price;
34
        $this->volume = $volume;
35
    }
36
37
    /**
38
     * @return float
39
     */
40
    public function getPrice()
41
    {
42
        return $this->price;
43
    }
44
45
    /**
46
     * @return float
47
     */
48
    public function getVolume()
49
    {
50
        return $this->volume;
51
    }
52
}
53