Completed
Push — master ( da5ca0...e55bc1 )
by Atanas
02:05
created

HasNameTrait::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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