Passed
Push — master ( bba056...1b0f90 )
by Fabian
02:22
created

ClosedOrderOrderTypeModel::getPrice2()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 3
Ratio 100 %

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 3
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\ClosedOrders;
8
9
/**
10
 * Class ClosedOrderOrderTypeModel
11
 *
12
 * @package HanischIt\KrakenApi\Model\ClosedOrders
13
 */
14 View Code Duplication
class ClosedOrderOrderTypeModel
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
15
{
16
    /**
17
     * @var string
18
     */
19
    private $leverage;
20
    /**
21
     * @var string
22
     */
23
    private $order;
24
    /**
25
     * @var string
26
     */
27
    private $ordertype;
28
    /**
29
     * @var string
30
     */
31
    private $pair;
32
    /**
33
     * @var float
34
     */
35
    private $price;
36
    /**
37
     * @var float
38
     */
39
    private $price2;
40
    /**
41
     * @var string
42
     */
43
    private $type;
44
45
    /**
46
     * OpenOrderOrderTypeModel constructor.
47
     *
48
     * @param string $leverage
49
     * @param string $order
50
     * @param string $ordertype
51
     * @param string $pair
52
     * @param float  $price
53
     * @param float  $price2
54
     * @param string $type
55
     */
56
    public function __construct($leverage, $order, $ordertype, $pair, $price, $price2, $type)
57
    {
58
        $this->leverage = $leverage;
59
        $this->order = $order;
60
        $this->ordertype = $ordertype;
61
        $this->pair = $pair;
62
        $this->price = $price;
63
        $this->price2 = $price2;
64
        $this->type = $type;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getLeverage()
71
    {
72
        return $this->leverage;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getOrder()
79
    {
80
        return $this->order;
81
    }
82
83
    /**
84
     * @return string
85
     */
86
    public function getOrdertype()
87
    {
88
        return $this->ordertype;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function getPair()
95
    {
96
        return $this->pair;
97
    }
98
99
    /**
100
     * @return float
101
     */
102
    public function getPrice()
103
    {
104
        return $this->price;
105
    }
106
107
    /**
108
     * @return float
109
     */
110
    public function getPrice2()
111
    {
112
        return $this->price2;
113
    }
114
115
    /**
116
     * @return string
117
     */
118
    public function getType()
119
    {
120
        return $this->type;
121
    }
122
}
123