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.

ResultingTrade   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 64
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
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, Traits\DateTrait};
15
16
/**
17
 * Class ResultingTrade
18
 *
19
 * @author Grisha Chasovskih <[email protected]>
20
 */
21
class ResultingTrade extends AbstractResponse
22
{
23
    use DateTrait;
24
25
    /**
26
     * Example: "338.8732"
27
     *
28
     * @var string
29
     */
30
    public $amount;
31
32
    /**
33
     * Example: "0.00000173"
34
     *
35
     * @var float
36
     */
37
    public $rate;
38
39
    /**
40
     * Example: 0.00058625
41
     *
42
     * @var float
43
     */
44
    public $total;
45
46
    /**
47
     * Example: 16164
48
     *
49
     * @var int
50
     */
51
    public $tradeId;
52
53
    /**
54
     * Example: "buy" or "sell"
55
     *
56
     * @var string
57
     */
58
    public $type;
59
60
    /**
61
     * @internal
62
     * @param float $amount
63
     */
64
    public function setAmount(float $amount): void
65
    {
66
        $this->amount = $amount;
67
    }
68
69
    /**
70
     * @internal
71
     * @param float $rate
72
     */
73
    public function setRate(float $rate): void
74
    {
75
        $this->rate = $rate;
76
    }
77
78
    /**
79
     * @internal
80
     * @param float $total
81
     */
82
    public function setTotal(float $total): void
83
    {
84
        $this->total = $total;
85
    }
86
}