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
Push — master ( fba8ee...5e9ebc )
by Anton
02:06
created

InvalidNumberException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 36
ccs 0
cts 14
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
A getNumber() 0 4 1
1
<?php
2
3
namespace Deployer\Component\PharUpdate\Version\Exception;
4
5
/**
6
 * Thrown if an invalid version number is used.
7
 *
8
 * @author Kevin Herrera <[email protected]>
9
 */
10
class InvalidNumberException extends VersionException
11
{
12
    /**
13
     * The invalid version number.
14
     *
15
     * @var mixed
16
     */
17
    private $number;
18
19
    /**
20
     * Sets the invalid version number.
21
     *
22
     * @param mixed $number The invalid version number.
23
     */
24
    public function __construct($number)
25
    {
26
        parent::__construct(
27
            sprintf(
28
                'The version number "%s" is invalid.',
29
                $number
30
            )
31
        );
32
33
        $this->number = $number;
34
    }
35
36
    /**
37
     * Returns the invalid version number.
38
     *
39
     * @return mixed The invalid version number.
40
     */
41
    public function getNumber()
42
    {
43
        return $this->number;
44
    }
45
}
46