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.

ApiKey::getApiKey()   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;
13
14
/**
15
 * To create new API keys please refer to the https://poloniex.com/apiKeys
16
 *
17
 * @author Grisha Chasovskih <[email protected]>
18
 */
19
class ApiKey
20
{
21
    /**
22
     * Your API key
23
     *
24
     * @var string
25
     */
26
    private $apiKey;
27
28
    /**
29
     * The query's POST data signed by your key's "secret" according to the HMAC-SHA512 method.
30
     *
31
     * @var string
32
     */
33
    private $secret;
34
35
    /**
36
     * ApiKey constructor.
37
     *
38
     * @param string $apiKey
39
     * @param string $secret
40
     */
41
    public function __construct(string $apiKey, string $secret)
42
    {
43
        $this->apiKey = $apiKey;
44
        $this->secret = $secret;
45
    }
46
47
    /**
48
     * Get API key
49
     *
50
     * @return string
51
     */
52
    public function getApiKey(): string
53
    {
54
        return $this->apiKey;
55
    }
56
57
    /**
58
     * Get API secret
59
     *
60
     * @return string
61
     */
62
    public function getSecret(): string
63
    {
64
        return $this->secret;
65
    }
66
}