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.

LoanOrders::getOffers()   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 0
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
use Poloniex\Response\PublicApi\LoanOrders\{Offer, Demand};
16
17
/**
18
 * Class LoanOrders
19
 *
20
 * @author Grisha Chasovskih <[email protected]>
21
 */
22
class LoanOrders extends AbstractResponse
23
{
24
    /**
25
     * @var Offer[]
26
     */
27
    public $offers;
28
29
    /**
30
     * @var Demand[]
31
     */
32
    public $demands;
33
34
    /**
35
     * @internal
36
     * @return Offer[]
37
     */
38
    public function getOffers(): array
39
    {
40
        return $this->offers;
41
    }
42
43
    /**
44
     * @internal
45
     * @param Offer[] $offers
46
     */
47
    public function setOffers(array $offers): void
48
    {
49
        $this->offers = $offers;
50
    }
51
52
    /**
53
     * @internal
54
     * @param Offer $offer
55
     */
56
    public function addOffer(Offer $offer): void
57
    {
58
        $this->offers[] = $offer;
59
    }
60
61
    /**
62
     * @internal
63
     * @return Demand[]
64
     */
65
    public function getDemands(): array
66
    {
67
        return $this->demands;
68
    }
69
70
    /**
71
     * @internal
72
     * @param Demand[] $demands
73
     */
74
    public function setDemands(array $demands): void
75
    {
76
        $this->demands = $demands;
77
    }
78
79
    /**
80
     * @internal
81
     * @param Demand $demand
82
     */
83
    public function addDemand(Demand $demand): void
84
    {
85
        $this->demands[] = $demand;
86
    }
87
}