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::getHost()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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