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.

Context::__construct()   A
last analyzed

Complexity

Conditions 3
Paths 4

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0
rs 9.4285
cc 3
eloc 5
nc 4
nop 2
1
<?php
2
3
namespace Saltwater\Salt;
4
5
/**
6
 * Context
7
 *
8
 * @package Saltwater\Bus
9
 *
10
 * A context accepts and returns services, decides provider priority through
11
 * module stacking.
12
 *
13
 * In a path, contexts provide hierarchy and encapsulation
14
 */
15
class Context
16
{
17
    /** @var string */
18
    public $namespace;
19
20
    /** @var Context */
21
    public $parent;
22
23
    /** @var Module */
24
    public $module;
25
26
    /** @var mixed */
27
    public $data;
28
29
    /** @var array */
30
    public $services = array();
31
32
    /**
33
     * @param Context|null $parent
34
     * @param Module|null  $module
35
     */
36
    public function __construct( $parent = null, $module = null )
37
    {
38
        if (!is_null($parent)) {
39
            $this->parent = $parent;
40
        }
41
42
        if (!is_null($module)) {
43
            $this->module = $module;
44
        }
45
    }
46
47
    /**
48
     * @param mixed $data
49
     */
50
    public function pushData( $data )
51
    {
52
        $this->data = $data;
53
    }
54
55
    /**
56
     * @return null
57
     */
58
    public function getInfo()
59
    {
60
        return null;
61
    }
62
}
63