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   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 0
dl 0
loc 48
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 3
A pushData() 0 4 1
A getInfo() 0 4 1
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