Passed
Pull Request — master (#10)
by Fabian
02:17
created

RecentTradeModel   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 93
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

7 Methods

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