Completed
Pull Request — master (#77)
by Pavel
03:49
created

Options::getPort()   A

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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace InfluxDB\Adapter\Udp;
3
4
class Options
5
{
6
    private $host = 'localhost';
7
    private $port = 4444;
8
    private $tags = [];
9
10 5
    public function getPort()
11
    {
12 5
        return $this->port;
13
    }
14
15 4
    public function setPort($port)
16
    {
17 4
        $this->port = $port;
18 4
        return $this;
19
    }
20
21 17
    public function getTags()
22
    {
23 17
        return $this->tags;
24
    }
25
26 3
    public function setTags($tags)
27
    {
28 3
        $this->tags = $tags;
29 3
        return $this;
30
    }
31
32 5
    public function getHost()
33
    {
34 5
       return $this->host;
35
    }
36
37 3
    public function setHost($host)
38
    {
39 3
        $this->host = $host;
40 3
        return $this;
41
    }
42
}
43
44