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

AttributeItemTrait::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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