Who::setData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

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