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

LongDescriptionPart   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
c 1
b 1
f 0
lcom 0
cbo 0
dl 0
loc 25
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLongDescription() 0 3 1
A setLongDescription() 0 4 1
1
<?php
2
namespace gossi\codegen\model\parts;
3
4
/**
5
 * Long description part
6
 *
7
 * For all models that can have an additional long description
8
 *
9
 * @author Thomas Gossmann
10
 */
11
trait LongDescriptionPart {
12
13
	/** @var string */
14
	private $longDescription;
15
16
	/**
17
	 * Returns the long description
18
	 *
19
	 * @return string
20
	 */
21 23
	public function getLongDescription() {
22 23
		return $this->longDescription;
23
	}
24
25
	/**
26
	 * Sets the long description
27
	 *
28
	 * @param string $longDescription
29
	 * @return $this
30
	 */
31 16
	public function setLongDescription($longDescription) {
32 16
		$this->longDescription = $longDescription;
33 16
		return $this;
34
	}
35
}
36