Completed
Push — master ( ddb885...bba056 )
by Fabian
02:59
created

OpenOrderOrderTypeModel::getPrice2()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 * @author fabian.hanisch
4
 * @since  2017-07-19
5
 */
6
7
namespace HanischIt\KrakenApi\Model\OpenOrders;
8
9
class OpenOrderOrderTypeModel
10
{
11
    /**
12
     * @var string
13
     */
14
    private $leverage;
15
    /**
16
     * @var string
17
     */
18
    private $order;
19
    /**
20
     * @var string
21
     */
22
    private $ordertype;
23
    /**
24
     * @var string
25
     */
26
    private $pair;
27
    /**
28
     * @var float
29
     */
30
    private $price;
31
    /**
32
     * @var float
33
     */
34
    private $price2;
35
    /**
36
     * @var string
37
     */
38
    private $type;
39
40
    /**
41
     * OpenOrderOrderTypeModel constructor.
42
     *
43
     * @param string $leverage
44
     * @param string $order
45
     * @param string $ordertype
46
     * @param string $pair
47
     * @param float  $price
48
     * @param float  $price2
49
     * @param string $type
50
     */
51
    public function __construct($leverage, $order, $ordertype, $pair, $price, $price2, $type)
52
    {
53
        $this->leverage = $leverage;
54
        $this->order = $order;
55
        $this->ordertype = $ordertype;
56
        $this->pair = $pair;
57
        $this->price = $price;
58
        $this->price2 = $price2;
59
        $this->type = $type;
60
    }
61
62
    /**
63
     * @return string
64
     */
65
    public function getLeverage()
66
    {
67
        return $this->leverage;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getOrder()
74
    {
75
        return $this->order;
76
    }
77
78
    /**
79
     * @return string
80
     */
81
    public function getOrdertype()
82
    {
83
        return $this->ordertype;
84
    }
85
86
    /**
87
     * @return string
88
     */
89
    public function getPair()
90
    {
91
        return $this->pair;
92
    }
93
94
    /**
95
     * @return float
96
     */
97
    public function getPrice()
98
    {
99
        return $this->price;
100
    }
101
102
    /**
103
     * @return float
104
     */
105
    public function getPrice2()
106
    {
107
        return $this->price2;
108
    }
109
110
    /**
111
     * @return string
112
     */
113
    public function getType()
114
    {
115
        return $this->type;
116
    }
117
}
118