LongDescriptionPart   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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