Passed
Push — master ( a3c87c...8294d3 )
by Alec
02:46
created

Nameable::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * User: alec
4
 * Date: 19.11.18
5
 * Time: 19:52
6
 */
7
declare(strict_types=1);
8
9
namespace AlecRabbit\Traits;
10
11
trait Nameable
12
{
13
    use GettableName;
14
15
    /**
16
     * @param string $name
17
     * @return self
18
     */
19
    public function setName(string $name): self
20
    {
21
        $this->name = $name;
22
        return $this;
23
    }
24
}
25