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

NamedItemTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 40%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 5 1
A getName() 0 3 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