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

UserName::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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