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.

SymLink   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 46
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getEndpoint() 0 4 1
A setEndpoint() 0 6 1
1
<?php
2
namespace Naneau\FileGen;
3
4
use Naneau\FileGen\Node;
5
6
/**
7
 * Description of symlink
8
 */
9
class SymLink extends Node
10
{
11
    /**
12
     * The endpoint of the link
13
     *
14
     * @var string
15
     **/
16
    private $endpoint;
17
18
    /**
19
     * Constructor
20
     *
21
     * @param  string $from endpoint (what the link points to)
22
     * @param  string $to   used as $name for Node
23
     * @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...
24
     **/
25
    public function __construct($from, $to)
26
    {
27
        parent::__construct($to);
28
29
        $this->setEndpoint($from);
30
    }
31
32
    /**
33
     * Get the endpoint of the link
34
     *
35
     * @return string
36
     */
37
    public function getEndpoint()
38
    {
39
        return $this->endpoint;
40
    }
41
42
    /**
43
     * Set the endpoint of the link
44
     *
45
     * @param  string  $endpoint
46
     * @return SymLink
47
     */
48
    public function setEndpoint($endpoint)
49
    {
50
        $this->endpoint = $endpoint;
51
52
        return $this;
53
    }
54
}
55