Completed
Push — master ( ce62ef...a1e916 )
by Thomas
02:37
created

NamePart::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace gossi\codegen\model\parts;
3
4
/**
5
 * Name part
6
 *
7
 * For all models that do have a name
8
 *
9
 * @author Thomas Gossmann
10
 */
11
trait NamePart {
12
13
	/** @var string */
14
	private $name;
15
16
	/**
17
	 * Sets the name
18
	 *
19
	 * @param string $name
20
	 * @return $this
21
	 */
22 62
	public function setName($name) {
23 62
		$this->name = $name;
24
25 62
		return $this;
26
	}
27
28
	/**
29
	 * Returns the name
30
	 *
31
	 * @return string
32
	 */
33 49
	public function getName() {
34 49
		return $this->name;
35
	}
36
}
37