Passed
Push — master ( 4e582d...e8c0a3 )
by n
02:48
created

UserName   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
namespace N1215\SimpleAdr\Domain;
4
5
class UserName
6
{
7
    /** @var string */
8
    private $userName;
9
10 4
    public function __construct(string $userName)
11
    {
12 4
        $this->userName = $userName;
13 4
    }
14
15
    /**
16
     * スカラー値を取得
17
     */
18 3
    public function getValue() : string
19
    {
20 3
        return $this->userName;
21
    }
22
}