GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

MarginPosition   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 115
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 115
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setLiquidationPrice() 0 3 1
A setBasePrice() 0 3 1
A setPl() 0 3 1
A setType() 0 3 1
A setTotal() 0 3 1
A setAmount() 0 3 1
A setLendingFees() 0 3 1
1
<?php
2
/**
3
 * This file is part of Poloniex PHP SDK.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @copyright 2017-2018 Chasovskih Grisha <[email protected]>
9
 * @license https://github.com/signulls/poloniex-php-sdk/blob/master/LICENSE MIT
10
 */
11
12
namespace Poloniex\Response\TradingApi;
13
14
use Poloniex\Response\AbstractResponse;
15
16
/**
17
 * Class MarginPosition
18
 *
19
 * @author Grisha Chasovskih <[email protected]>
20
 */
21
class MarginPosition extends AbstractResponse
22
{
23
    public const TYPE_LONG = 'long';
24
    public const TYPE_NONE = 'none';
25
26
    /**
27
     * Example: 40.94717831
28
     *
29
     * @var float
30
     */
31
    public $amount;
32
33
    /**
34
     * Example: -0.09671314
35
     *
36
     * @var float
37
     */
38
    public $total;
39
40
    /**
41
     * Example: 0.00236190
42
     *
43
     * @var float
44
     */
45
    public $basePrice;
46
47
    /**
48
     * Example: -1
49
     *
50
     * @var int
51
     */
52
    public $liquidationPrice;
53
54
    /**
55
     * Example: -0.00058655
56
     *
57
     * @var float
58
     */
59
    public $pl;
60
61
    /**
62
     * Example: -0.00000038
63
     *
64
     * @var float
65
     */
66
    public $lendingFees;
67
68
    /**
69
     * Example: long
70
     *
71
     * @var string
72
     */
73
    public $type;
74
75
    /**
76
     * @internal
77
     * @param float $amount
78
     */
79
    public function setAmount(float $amount): void
80
    {
81
        $this->amount = $amount;
82
    }
83
84
    /**
85
     * @internal
86
     * @param float $total
87
     */
88
    public function setTotal(float $total): void
89
    {
90
        $this->total = $total;
91
    }
92
93
    /**
94
     * @internal
95
     * @param float $basePrice
96
     */
97
    public function setBasePrice(float $basePrice): void
98
    {
99
        $this->basePrice = $basePrice;
100
    }
101
102
    /**
103
     * @internal
104
     * @param int $liquidationPrice
105
     */
106
    public function setLiquidationPrice(int $liquidationPrice): void
107
    {
108
        $this->liquidationPrice = $liquidationPrice;
109
    }
110
111
    /**
112
     * @internal
113
     * @param float $pl
114
     */
115
    public function setPl(float $pl): void
116
    {
117
        $this->pl = $pl;
118
    }
119
120
    /**
121
     * @internal
122
     * @param float $lendingFees
123
     */
124
    public function setLendingFees(float $lendingFees): void
125
    {
126
        $this->lendingFees = $lendingFees;
127
    }
128
129
    /**
130
     * @internal
131
     * @param string $type
132
     */
133
    public function setType(string $type): void
134
    {
135
        $this->type = $type;
136
    }
137
}