Passed
Pull Request — master (#12)
by
unknown
08:46
created

IrcUser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 2
c 2
b 0
f 0
dl 0
loc 9
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A __toString() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Jerodev\PhpIrcClient;
6
7
class IrcUser
8
{
9
    public function __construct(public string $nickname)
10
    {
11
    }
12
13
    public function __toString(): string
14
    {
15
        return $this->nickname;
16
    }
17
}
18