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.

Server   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 38
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getHost() 0 4 1
A getPort() 0 4 1
1
<?php
2
namespace dmank\gearman;
3
4
class Server
5
{
6
    /**
7
     * @var string
8
     */
9
    private $host = '';
10
11
    /**
12
     * @var int
13
     */
14
    private $port;
15
16
    /**
17
     * @param string $host
18
     * @param int $port
19
     */
20 9
    public function __construct($host = '127.0.0.1', $port = 4730)
21
    {
22 9
        $this->host = $host;
23 9
        $this->port = (int) $port;
24 9
    }
25
26
    /**
27
     * @return string
28
     */
29 6
    public function getHost()
30
    {
31 6
        return $this->host;
32
    }
33
34
    /**
35
     * @return int
36
     */
37 6
    public function getPort()
38
    {
39 6
        return $this->port;
40
    }
41
}
42