Who   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 11
c 1
b 0
f 0
dl 0
loc 27
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getBrowser() 0 3 1
A getIpAddress() 0 3 1
A getName() 0 3 1
A setData() 0 6 1
1
<?php
2
3
namespace kalanis\kw_bans;
4
5
6
class Who
7
{
8
    protected string $ipAddress = '';
9
    protected string $browser = '';
10
    protected string $name = '';
11
12 1
    public function setData(string $name, string $browser, string $ipAddress): self
13
    {
14 1
        $this->ipAddress = $ipAddress;
15 1
        $this->browser = $browser;
16 1
        $this->name = $name;
17 1
        return $this;
18
    }
19
20 1
    public function getIpAddress(): string
21
    {
22 1
        return $this->ipAddress;
23
    }
24
25 1
    public function getBrowser(): string
26
    {
27 1
        return $this->browser;
28
    }
29
30 1
    public function getName(): string
31
    {
32 1
        return $this->name;
33
    }
34
}
35