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

PriceVolumeModel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 37
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

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