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.

Loan   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 82
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 82
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setAmount() 0 3 1
A setId() 0 3 1
A setRate() 0 3 1
A setAutoRenew() 0 3 1
A setDuration() 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 Loan
19
 *
20
 * @author Grisha Chasovskih <[email protected]>
21
 */
22
class Loan extends AbstractResponse
23
{
24
    use DateTrait;
25
26
    /**
27
     * Example: 75073
28
     *
29
     * @var int
30
     */
31
    public $id;
32
33
    /**
34
     * Example: 0.00020000
35
     *
36
     * @var float
37
     */
38
    public $rate;
39
40
    /**
41
     * Example: 0.72234880
42
     *
43
     * @var float
44
     */
45
    public $amount;
46
47
    /**
48
     * Example: 2
49
     *
50
     * @var int
51
     */
52
    public $duration;
53
54
    /**
55
     * Available only for provided loans
56
     *
57
     * @var bool
58
     */
59
    public $autoRenew;
60
61
    /**
62
     * @internal
63
     * @param int $id
64
     */
65
    public function setId(int $id): void
66
    {
67
        $this->id = $id;
68
    }
69
70
    /**
71
     * @internal
72
     * @param float $rate
73
     */
74
    public function setRate(float $rate): void
75
    {
76
        $this->rate = $rate;
77
    }
78
79
    /**
80
     * @internal
81
     * @param float $amount
82
     */
83
    public function setAmount(float $amount): void
84
    {
85
        $this->amount = $amount;
86
    }
87
88
    /**
89
     * @internal
90
     * @param int $duration
91
     */
92
    public function setDuration(int $duration): void
93
    {
94
        $this->duration = $duration;
95
    }
96
97
    /**
98
     * @internal
99
     * @param bool $autoRenew
100
     */
101
    public function setAutoRenew(bool $autoRenew): void
102
    {
103
        $this->autoRenew = $autoRenew;
104
    }
105
}