Passed
Push — master ( 7e6ab9...0e6fd8 )
by Fabian
01:51
created

RecentTradeModel   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 93
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 93
ccs 0
cts 32
cp 0
rs 10
c 1
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getTime() 0 3 1
A getType() 0 3 1
A getPrice() 0 3 1
A getTradeType() 0 3 1
A getMisc() 0 3 1
A getVolume() 0 3 1
A __construct() 0 8 1
1
<?php
2
/**
3
 * @author fabian.hanisch
4
 * @since  2017-07-18
5
 */
6
7
namespace HanischIt\KrakenApi\Model\RecentTrades;
8
9
/**
10
 * Class RecentTradeModel
11
 *
12
 * @package HanischIt\KrakenApi\Model\RecentTrades
13
 */
14
class RecentTradeModel
15
{
16
    /**
17
     * @var float
18
     */
19
    private $price;
20
    /**
21
     * @var float
22
     */
23
    private $volume;
24
    /**
25
     * @var int
26
     */
27
    private $time;
28
    /**
29
     * @var string
30
     */
31
    private $type;
32
    /**
33
     * @var string
34
     */
35
    private $tradeType;
36
    /**
37
     * @var string
38
     */
39
    private $misc;
40
41
    /**
42
     * RecentTradeModel constructor.
43
     *
44
     * @param float  $price
45
     * @param float  $volume
46
     * @param int    $time
47
     * @param string $type
48
     * @param string $tradeType
49
     * @param string $misc
50
     */
51
    public function __construct($price, $volume, $time, $type, $tradeType, $misc)
52
    {
53
        $this->price = $price;
54
        $this->volume = $volume;
55
        $this->time = $time;
56
        $this->type = $type;
57
        $this->tradeType = $tradeType;
58
        $this->misc = $misc;
59
    }
60
61
    /**
62
     * @return float
63
     */
64
    public function getPrice()
65
    {
66
        return $this->price;
67
    }
68
69
    /**
70
     * @return float
71
     */
72
    public function getVolume()
73
    {
74
        return $this->volume;
75
    }
76
77
    /**
78
     * @return int
79
     */
80
    public function getTime()
81
    {
82
        return $this->time;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function getType()
89
    {
90
        return $this->type;
91
    }
92
93
    /**
94
     * @return string
95
     */
96
    public function getTradeType()
97
    {
98
        return $this->tradeType;
99
    }
100
101
    /**
102
     * @return string
103
     */
104
    public function getMisc()
105
    {
106
        return $this->misc;
107
    }
108
}
109