Completed
Push — master ( 26e625...88c602 )
by Timo
02:58
created

HasNameTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 17
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Tidal/WampWatch package.
5
 *   (c) 2016 Timo Michna <timomichna/yahoo.de>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 *
10
 */
11
12
namespace Tidal\WampWatch\Model\Property\Scalar;
13
14
trait HasNameTrait
15
{
16
    private $name;
17
18
    public function getName()
19
    {
20
        return $this->name;
21
    }
22
23
    /**
24
     * @param string $name
25
     */
26
    private function setName($name)
27
    {
28
        $this->name = $name;
29
    }
30
}
31