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

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