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.

ServerItem::toArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace SeleniumSetup\Locker;
3
4
class ServerItem
5
{
6
    const DATE_FORMAT = 'Y-m-d H:i:s';
7
    
8
    protected $name;
9
    protected $dateStarted;
10
    protected $dateStopped;
11
    protected $pid;
12
    protected $port;
13
    protected $configFilePath;
14
15
    /**
16
     * @return mixed
17
     */
18
    public function getName()
19
    {
20
        return $this->name;
21
    }
22
23
    /**
24
     * @param mixed $name
25
     * @return ServerItem
26
     */
27
    public function setName($name)
28
    {
29
        $this->name = $name;
30
        return $this;
31
    }
32
33
    /**
34
     * @return mixed
35
     */
36
    public function getDateStarted()
37
    {
38
        return $this->dateStarted;
39
    }
40
41
    /**
42
     * @param mixed $dateStarted
43
     * @return ServerItem
44
     */
45
    public function setDateStarted($dateStarted)
46
    {
47
        $this->dateStarted = $dateStarted;
48
        return $this;
49
    }
50
51
    /**
52
     * @return mixed
53
     */
54
    public function getDateStopped()
55
    {
56
        return $this->dateStopped;
57
    }
58
59
    /**
60
     * @param mixed $dateStopped
61
     * @return ServerItem
62
     */
63
    public function setDateStopped($dateStopped)
64
    {
65
        $this->dateStopped = $dateStopped;
66
        return $this;
67
    }
68
69
    /**
70
     * @return mixed
71
     */
72
    public function getPid()
73
    {
74
        return $this->pid;
75
    }
76
77
    /**
78
     * @param mixed $pid
79
     * @return ServerItem
80
     */
81
    public function setPid($pid)
82
    {
83
        $this->pid = $pid;
84
        return $this;
85
    }
86
87
    /**
88
     * @return mixed
89
     */
90
    public function getPort()
91
    {
92
        return $this->port;
93
    }
94
95
    /**
96
     * @param mixed $port
97
     * @return ServerItem
98
     */
99
    public function setPort($port)
100
    {
101
        $this->port = $port;
102
        return $this;
103
    }
104
105
    /**
106
     * @return mixed
107
     */
108
    public function getConfigFilePath()
109
    {
110
        return $this->configFilePath;
111
    }
112
113
    /**
114
     * @param mixed $configFilePath
115
     * @return ServerItem
116
     */
117
    public function setConfigFilePath($configFilePath)
118
    {
119
        $this->configFilePath = $configFilePath;
120
        return $this;
121
    }
122
123
    public function toArray()
124
    {
125
        return (array)get_object_vars($this);
126
    }
127
128
    /**
129
     * @return array
130
     */
131
    public static function getAllProperties()
132
    {
133
        return array_keys(get_object_vars(new self));
134
    }
135
    
136
}