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

SpreadDataModel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 50
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getAsk() 0 3 1
A __construct() 0 5 1
A getBid() 0 3 1
A getTime() 0 3 1
1
<?php
2
/**
3
 * @author Fabian Hanisch
4
 * @since 18.07.2017 20:32
5
 * @version 1.0
6
 */
7
8
namespace HanischIt\KrakenApi\Call\SpreadData\Model;
9
10
/**
11
 * Class SpreadDataModel
12
 * @package HanischIt\KrakenApi\Call\SpreadData\Model
13
 */
14
class SpreadDataModel
15
{
16
    /**
17
     * @var int
18
     */
19
    private $time;
20
    /**
21
     * @var float
22
     */
23
    private $bid;
24
    /**
25
     * @var float
26
     */
27
    private $ask;
28
29
    /**
30
     * SpreadDataModel constructor.
31
     * @param int $time
32
     * @param float $bid
33
     * @param float $ask
34
     */
35 3
    public function __construct($time, $bid, $ask)
36
    {
37 3
        $this->time = $time;
38 3
        $this->bid = $bid;
39 3
        $this->ask = $ask;
40 3
    }
41
42
    /**
43
     * @return int
44
     */
45 1
    public function getTime()
46
    {
47 1
        return $this->time;
48
    }
49
50
    /**
51
     * @return float
52
     */
53 1
    public function getBid()
54
    {
55 1
        return $this->bid;
56
    }
57
58
    /**
59
     * @return float
60
     */
61 1
    public function getAsk()
62
    {
63 1
        return $this->ask;
64
    }
65
}
66