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.

Coin::getRank()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Coinpaprika\Model;
4
5
use Coinpaprika\Model\Traits\IdentityTrait;
6
use Coinpaprika\Model\Traits\NameTrait;
7
8
/**
9
 * Class Coin
10
 *
11
 * @package \Coinpaprika\Model
12
 *
13
 * @author Krzysztof Przybyszewski <[email protected]>
14
 */
15
class Coin
16
{
17
    use IdentityTrait, NameTrait;
18
19
    /**
20
     * @var string
21
     */
22
    private $symbol;
23
24
    /**
25
     * @var int
26
     */
27
    private $rank;
28
29
    /**
30
     * @var boolean
31
     */
32
    private $new;
33
34
    /**
35
     * @var boolean
36
     */
37
    private $active;
38
39
    /**
40
     * @return string
41
     */
42 2
    public function getSymbol(): string
43
    {
44 2
        return $this->symbol;
45
    }
46
47
    /**
48
     * @param string $symbol
49
     */
50 2
    public function setSymbol(string $symbol): void
51
    {
52 2
        $this->symbol = $symbol;
53 2
    }
54
55
    /**
56
     * @return int
57
     */
58 2
    public function getRank(): int
59
    {
60 2
        return $this->rank;
61
    }
62
63
    /**
64
     * @param int $rank
65
     */
66 2
    public function setRank(int $rank): void
67
    {
68 2
        $this->rank = $rank;
69 2
    }
70
71
    /**
72
     * @return bool
73
     */
74 2
    public function isNew(): bool
75
    {
76 2
        return $this->new;
77
    }
78
79
    /**
80
     * @param bool $new
81
     */
82 2
    public function setNew(bool $new): void
83
    {
84 2
        $this->new = $new;
85 2
    }
86
87
    /**
88
     * @return bool
89
     */
90 2
    public function isActive(): bool
91
    {
92 2
        return $this->active;
93
    }
94
95
    /**
96
     * @param bool $active
97
     */
98 2
    public function setActive(bool $active): void
99
    {
100 2
        $this->active = $active;
101 2
    }
102
}
103