| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function getName(): string |
|
| 33 | } |
||
| 34 | } |
||
| 35 |