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.
Passed
Push — master ( baec26...abf8ca )
by Grisha
02:28
created

OrderStatus   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 89
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 89
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setStartingAmount() 0 3 1
A setAmount() 0 3 1
A setTotal() 0 3 1
A setRate() 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
use Poloniex\Response\Traits\DateTrait;
16
17
/**
18
 * Class OrderStatus
19
 *
20
 * @author Grisha Chasovskih <[email protected]>
21
 */
22
class OrderStatus extends AbstractResponse
23
{
24
    public const STATUS_OPEN = 'Open';
25
    public const STATUS_PARTIALLY_FILLED = 'Partially filled';
26
27
    public const TYPE_SELL = 'sell';
28
    public const TYPE_BUY = 'buy';
29
30
    use DateTrait;
31
32
    /**
33
     * Example: "Open" or "Partially filled"
34
     *
35
     * @var string
36
     */
37
    public $status;
38
39
    /**
40
     * Example: "0.02300000"
41
     *
42
     * @var float
43
     */
44
    public $rate;
45
46
    /**
47
     * Example: "0.04975764"
48
     *
49
     * @var float
50
     */
51
    public $amount;
52
53
    /**
54
     * Example: "BTC_ETH"
55
     *
56
     * @var string
57
     */
58
    public $currencyPair;
59
60
    /**
61
     * Example: "0.00114442"
62
     *
63
     * @var float
64
     */
65
    public $total;
66
67
    /**
68
     * Example: "sell"
69
     *
70
     * @var string
71
     */
72
    public $type;
73
74
    /**
75
     * Example: "0.04975764"
76
     *
77
     * @var float
78
     */
79
    public $startingAmount;
80
81
    /**
82
     * @param float $amount
83
     */
84
    public function setAmount(float $amount): void
85
    {
86
        $this->amount = $amount;
87
    }
88
89
    /**
90
     * @param float $rate
91
     */
92
    public function setRate(float $rate): void
93
    {
94
        $this->rate = $rate;
95
    }
96
97
    /**
98
     * @param float $total
99
     */
100
    public function setTotal(float $total): void
101
    {
102
        $this->total = $total;
103
    }
104
105
    /**
106
     * @param float $startingAmount
107
     */
108
    public function setStartingAmount(float $startingAmount): void
109
    {
110
        $this->startingAmount = $startingAmount;
111
    }
112
}