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.
Completed
Push — master ( 6ac76d...bfd754 )
by Cees-Jan
03:25
created

NodeAwareTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setNode() 0 4 1
A getNode() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/*
5
 * This file is part of PhuninNode.
6
 *
7
 ** (c) 2013 - 2016 Cees-Jan Kiewiet
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace WyriHaximus\PhuninNode\Commands;
14
15
use WyriHaximus\PhuninNode\ConnectionContext;
16
use WyriHaximus\PhuninNode\Node;
17
use function React\Promise\resolve;
18
19
trait NodeAwareTrait
20
{
21
    /**
22
     * @var Node
23
     */
24
    private $node;
25
26
    /**
27
     * @param Node $node
28
     */
29 50
    public function setNode(Node $node)
30
    {
31 50
        $this->node = $node;
32 50
    }
33
34
    /**
35
     * @return Node
36
     */
37 8
    protected function getNode(): Node
38
    {
39 8
        return $this->node;
40
    }
41
}
42