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.

SkylabException::getContext()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: roderik
5
 * Date: 09/08/15
6
 * Time: 15:30
7
 */
8
9
namespace Kunstmaan\Skylab\Exceptions;
10
11
12
class SkylabException extends \ErrorException
13
{
14
15
    private $context;
16
17
    /**
18
     * (PHP 5 &gt;= 5.1.0)<br/>
19
     * Constructs the exception
20
     * @link http://php.net/manual/en/errorexception.construct.php
21
     * @param string $message [optional] The Exception message to throw.
22
     * @param int $code [optional] The Exception code.
23
     * @param int $severity [optional] The severity level of the exception.
24
     * @param string $filename [optional] The filename where the exception is thrown.
25
     * @param int $lineno [optional] The line number where the exception is thrown.
26
     * @param \Exception $previous [optional] The previous exception used for the exception chaining.
0 ignored issues
show
Documentation introduced by
Should the type for parameter $previous not be \Exception|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
27
     * @param array $context
28
     */
29
    public function __construct($message = "", $code = 0, $severity = 1, $filename = __FILE__, $lineno = __LINE__, $previous = null, $context = array()) {
30
        parent::__construct($message, $code, $severity, $filename, $lineno, $previous);
31
        $this->context = $context;
32
    }
33
34
    /**
35
     * @return mixed
36
     */
37
    public function getContext()
38
    {
39
        return $this->context;
40
    }
41
42
    /**
43
     * @param mixed $context
44
     */
45
    public function setContext($context)
46
    {
47
        $this->context = $context;
48
    }
49
50
51
52
}