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.

ResultNotFound::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
nc 1
cc 1
eloc 2
nop 1
1
<?php
2
/**
3
 * ResultNotFound.php
4
 *
5
 * @category        AngryBytes
6
 * @package         Cache
7
 * @subpackage      Result
8
 * @copyright       Copyright (c) 2010 Angry Bytes BV (http://www.angrybytes.com)
9
 */
10
11
namespace AngryBytes\Cache;
12
13
/**
14
 * ResultNotFound
15
 *
16
 * Result not found identifier
17
 *
18
 * @category        AngryBytes
19
 * @package         Cache
20
 * @subpackage      Result
21
 */
22
class ResultNotFound
23
{
24
    /**
25
     * Id that was not found
26
     *
27
     * @var string
28
     **/
29
    private $id;
30
31
    /**
32
     * Constructor
33
     *
34
     * @param string $id
35
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
36
     **/
37
    public function __construct($id)
38
    {
39
        $this->setId($id);
40
    }
41
42
    /**
43
     * Get the id
44
     *
45
     * @return string
46
     */
47
    public function getId()
48
    {
49
        return $this->id;
50
    }
51
52
    /**
53
     * Set the id
54
     *
55
     * @param string $id
56
     * @return ResultNotFound
57
     */
58
    public function setId($id)
59
    {
60
        $this->id = $id;
61
62
        return $this;
63
    }
64
65
    /**
66
     * String overload
67
     *
68
     * @return void
69
     **/
70
    public function __toString()
71
    {
72
        return 'Cache result "' . $this->id . '" was not found';
73
    }
74
}
75