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

Options   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 39
ccs 15
cts 15
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getPort() 0 4 1
A setPort() 0 5 1
A getTags() 0 4 1
A setTags() 0 5 1
A getHost() 0 4 1
A setHost() 0 5 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