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.
Passed
Pull Request — master (#9)
by
unknown
04:15
created

Coin::setDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
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 $name;
23
24
    /**
25
     * @var string
26
     */
27
    private $symbol;
28
29
    /**
30
     * @var string
31
     */
32
    private $description;
33
34
    /**
35
     * @var int
36
     */
37
    private $rank;
38
39
    /**
40
     * @var boolean
41
     */
42
    private $new;
43
44
    /**
45
     * @var boolean
46
     */
47
    private $active;
48
49
    /**
50
     * @var array
51
     */
52
    private $links;
53
54
    /**
55
     * @return string
56
     */
57 2
    public function getName(): string
58
    {
59 2
        return $this->name;
60
    }
61
62
    /**
63
     * @param string $name
64
     */
65 2
    public function setName(string $name): void
66
    {
67 2
        $this->name = $name;
68 2
    }
69
70
    /**
71
     * @return string
72
     */
73 2
    public function getSymbol(): string
74
    {
75 2
        return $this->symbol;
76
    }
77
78
    /**
79
     * @param string $symbol
80
     */
81 2
    public function setSymbol(string $symbol): void
82
    {
83 2
        $this->symbol = $symbol;
84 2
    }
85
    
86
    /**
87
     * @return string
88
     */
89
    public function getDescription(): string
90
    {
91
        return $this->description;
92
    }
93
94
    /**
95
     * @param string $description
96
     */
97
    public function setDescription(string $description): void
98
    {
99
        $this->description = $description;
100
    }
101
102
    /**
103
     * @return int
104
     */
105 2
    public function getRank(): int
106
    {
107 2
        return $this->rank;
108
    }
109
110
    /**
111
     * @param int $rank
112
     */
113 2
    public function setRank(int $rank): void
114
    {
115 2
        $this->rank = $rank;
116 2
    }
117
118
    /**
119
     * @return bool
120
     */
121 2
    public function isNew(): bool
122
    {
123 2
        return $this->new;
124
    }
125
126
    /**
127
     * @param bool $new
128
     */
129 2
    public function setNew(bool $new): void
130
    {
131 2
        $this->new = $new;
132 2
    }
133
134
    /**
135
     * @return bool
136
     */
137 2
    public function isActive(): bool
138
    {
139 2
        return $this->active;
140
    }
141
142
    /**
143
     * @param bool $active
144
     */
145 2
    public function setActive(bool $active): void
146
    {
147 2
        $this->active = $active;
148 2
    }
149
    
150
    /**
151
     * @return array
152
     */
153
    public function getLinks(): array
154
    {
155
        return $this->links;
156
    }
157
158
    /**
159
     * @param array $links
160
     */
161
    public function setLinks(array $links): void
162
    {
163
        $this->links = $links;
164
    }
165
}
166