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

InvalidIdentifierException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 11
ccs 0
cts 10
cp 0
crap 2
rs 9.9
c 0
b 0
f 0
1
<?php
2
3
namespace Deployer\Component\PharUpdate\Version\Exception;
4
5
/**
6
 * Thrown if an invalid identifier is used.
7
 *
8
 * @author Kevin Herrera <[email protected]>
9
 */
10
class InvalidIdentifierException extends VersionException
11
{
12
    /**
13
     * The invalid identifier.
14
     *
15
     * @var string
16
     */
17
    private $identifier;
18
19
    /**
20
     * Sets the invalid identifier.
21
     *
22
     * @param string $identifier The invalid identifier.
23
     */
24
    public function __construct($identifier)
25
    {
26
        parent::__construct(
27
            sprintf(
28
                'The identifier "%s" is invalid.',
29
                $identifier
30
            )
31
        );
32
33
        $this->identifier = $identifier;
34
    }
35
36
    /**
37
     * Returns the invalid identifier.
38
     *
39
     * @return string The invalid identifier.
40
     */
41
    public function getIdentifier()
42
    {
43
        return $this->identifier;
44
    }
45
}
46