Passed
Push — static-analysis ( 5a8282...f0242b )
by SignpostMarv
03:33
created

NamedItemTrait::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace GoetasWebservices\XML\XSDReader\Schema;
4
5
trait NamedItemTrait
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $name;
11
12
    /**
13
     * @return string
14
     */
15 45
    public function getName()
16
    {
17 45
        return $this->name;
18
    }
19
20
    /**
21
     * @param string $name
22
     *
23
     * @return $this
24
     */
25
    public function setName($name)
26
    {
27
        $this->name = $name;
28
29
        return $this;
30
    }
31
}
32