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

AttributeItemTrait::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
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