Passed
Push — static-analysis ( d5a974...87b144 )
by SignpostMarv
03:37
created

AttributeItemTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 40%

Importance

Changes 0
Metric Value
dl 0
loc 24
ccs 2
cts 5
cp 0.4
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A setName() 0 4 1
1
<?php
2
namespace GoetasWebservices\XML\XSDReader\Schema\Attribute;
3
4
trait AttributeItemTrait
5
{
6
    /**
7
    * @var string
8
    */
9
    protected $name;
10
11
    /**
12
    * @return string
13
    */
14 135
    public function getName()
15
    {
16 135
        return $this->name;
17
    }
18
19
    /**
20
    * @param string $name
21
    *
22
    * @return $this
23
    */
24
    public function setName($name)
25
    {
26
        $this->name = $name;
27
        return $this;
28
    }
29
}
30