Completed
Pull Request — master (#10)
by Fabian
02:25
created

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