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   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 86
ccs 19
cts 19
cp 1
rs 10
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A isActive() 0 3 1
A setActive() 0 3 1
A setNew() 0 3 1
A isNew() 0 3 1
A getRank() 0 3 1
A setRank() 0 3 1
A getSymbol() 0 3 1
A setSymbol() 0 3 1
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