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.

Currency::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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\PublicApi;
13
14
use Poloniex\Response\AbstractResponse;
15
16
/**
17
 * Class Currency
18
 *
19
 * @author Grisha Chasovskih <[email protected]>
20
 */
21
class Currency extends AbstractResponse
22
{
23
    public const DEPOSIT_ADDRESS_POLONIEX_WALLET = 'poloniexwallet';
24
    public const DEPOSIT_ADDRESS_POLONIEX = 'poloniex';
25
26
    /**
27
     * Example: 293
28
     *
29
     * @var int
30
     */
31
    public $id;
32
33
    /**
34
     * Example: "Peercoin"
35
     *
36
     * @var string
37
     */
38
    public $name;
39
40
    /**
41
     * Example: "0.00500000"
42
     *
43
     * @var float
44
     */
45
    public $txFee;
46
47
    /**
48
     * Example: 35
49
     *
50
     * @var int
51
     */
52
    public $minConf;
53
54
    /**
55
     * Example: 1VQpANF1pcKHPRAsZpeyG4jLDd1kbPn32YMeXkr9n8jNFvf8aaJdecB3FyAvo7X1DWJDQt3nii9eUTP5kJSfRpL5AwT72FM
56
     * Can also contain "poloniex" or "poloniexwallet"
57
     *
58
     * @var string|null
59
     */
60
    public $depositAddress;
61
62
    /**
63
     * @var bool
64
     */
65
    public $disabled;
66
67
    /**
68
     * @var bool
69
     */
70
    public $delisted;
71
72
    /**
73
     * @var bool
74
     */
75
    public $frozen;
76
77
    /**
78
     * @internal
79
     * @param int $id
80
     */
81
    public function setId(int $id): void
82
    {
83
        $this->id = $id;
84
    }
85
86
    /**
87
     * @internal
88
     * @param float $txFee
89
     */
90
    public function setTxFee(float $txFee): void
91
    {
92
        $this->txFee = $txFee;
93
    }
94
95
    /**
96
     * @internal
97
     * @param int $minConf
98
     */
99
    public function setMinConf(int $minConf): void
100
    {
101
        $this->minConf = $minConf;
102
    }
103
104
    /**
105
     * @internal
106
     * @param bool $disabled
107
     */
108
    public function setDisabled(bool $disabled): void
109
    {
110
        $this->disabled = $disabled;
111
    }
112
113
    /**
114
     * @internal
115
     * @param bool $delisted
116
     */
117
    public function setDelisted(bool $delisted): void
118
    {
119
        $this->delisted = $delisted;
120
    }
121
122
    /**
123
     * @internal
124
     * @param bool $frozen
125
     */
126
    public function setFrozen(bool $frozen): void
127
    {
128
        $this->frozen = $frozen;
129
    }
130
}