Completed
Push — master ( 8294d3...af0e01 )
by Alec
03:11
created

GettableName::defaultName()   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: 30.11.18
5
 * Time: 18:06
6
 */
7
8
namespace AlecRabbit\Traits;
9
10
11
trait GettableName
12
{
13
    /** @var string */
14
    protected $name;
15
16
    /**
17
     * @return string
18
     */
19
    public function getName(): string
20
    {
21
        return $this->name;
22
    }
23
24
    /**
25
     * @return string
26
     */
27
    public function defaultName(): string
28
    {
29
        return 'default_name';
30
    }
31
32
}