Name   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 6 1
A getName() 0 4 1
1
<?php
2
3
namespace steevanb\EntityUtils\Traits\Accessor;
4
5
/**
6
 * This trait need a property named $name
7
 */
8
trait Name
9
{
10
    /**
11
     * Set name
12
     *
13
     * @param string $name
14
     * @return $this
15
     */
16
    public function setName($name)
17
    {
18
        $this->name = $name;
19
20
        return $this;
21
    }
22
23
    /**
24
     * Get name
25
     *
26
     * @return string
27
     */
28
    public function getName()
29
    {
30
        return $this->name;
31
    }
32
}
33