Completed
Push — master ( 17bcf1...528abf )
by Dmitry
10:53
created

NamedEndpointBuilderTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A name() 0 6 1
1
<?php
2
3
4
namespace hiapi\endpoints\Module\NamedEndpoint;
5
6
trait NamedEndpointBuilderTrait
7
{
8
    /**
9
     * @var string
10
     */
11
    protected $name = null;
12
13
    public function name(string $name)
14
    {
15
        $this->name = $name;
16
17
        return $this;
18
    }
19
}
20