Completed
Push — master ( 4a7a7a...e0de0e )
by Fabian
02:25
created

PriceVolumeModel::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\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 2
    public function __construct($price, $volume)
32
    {
33 2
        $this->price = $price;
34 2
        $this->volume = $volume;
35 2
    }
36
37
    /**
38
     * @return float
39
     */
40 1
    public function getPrice()
41
    {
42 1
        return $this->price;
43
    }
44
45
    /**
46
     * @return float
47
     */
48 1
    public function getVolume()
49
    {
50 1
        return $this->volume;
51
    }
52
}
53