Completed
Push — master ( 39a0bd...0a53a0 )
by Fabian
02:26
created

PriceVolumeModel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 37
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPrice() 0 3 1
A __construct() 0 4 1
A getVolume() 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 PriceVolumeModel
11
 * @package HanischIt\KrakenApi\Call\GetTicker\Model
12
 */
13
class PriceVolumeModel
14
{
15
    /**
16
     * @var float
17
     */
18
    private $price;
19
    /**
20
     * @var float
21
     */
22
    private $volume;
23
24
    /**
25
     * PriceVolumeModel constructor.
26
     *
27
     * @param float $price
28
     * @param float $volume
29
     */
30 2
    public function __construct($price, $volume)
31
    {
32 2
        $this->price = $price;
33 2
        $this->volume = $volume;
34 2
    }
35
36
    /**
37
     * @return float
38
     */
39 1
    public function getPrice()
40
    {
41 1
        return $this->price;
42
    }
43
44
    /**
45
     * @return float
46
     */
47 1
    public function getVolume()
48
    {
49 1
        return $this->volume;
50
    }
51
}
52