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.

Exchange::setRank()   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 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Coinpaprika\Model;
4
5
use Coinpaprika\Model\Traits\IdentityTrait;
6
use Coinpaprika\Model\Traits\NameTrait;
7
8
/**
9
 * Class Exchange
10
 *
11
 * @package \Coinpaprika\Model
12
 *
13
 * @author Krzysztof Przybyszewski <[email protected]>
14
 */
15
class Exchange
16
{
17
    use IdentityTrait, NameTrait;
18
19
    /**
20
     * @var int
21
     */
22
    private $rank;
23
24
    /**
25
     * @return int
26
     */
27 1
    public function getRank(): int
28
    {
29 1
        return $this->rank;
30
    }
31
32
    /**
33
     * @param int $rank
34
     */
35 1
    public function setRank(int $rank): void
36
    {
37 1
        $this->rank = $rank;
38 1
    }
39
}
40