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

BodyPart   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
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 26
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setBody() 0 5 1
A getBody() 0 3 1
1
<?php
2
namespace gossi\codegen\model\parts;
3
4
/**
5
 * Body Part
6
 *
7
 * For all models that do have a code body
8
 *
9
 * @author Thomas Gossmann
10
 */
11
trait BodyPart {
12
13
	/** @var string */
14
	private $body = '';
15
16
	/**
17
	 * Sets the body for this
18
	 *
19
	 * @param string $body
20
	 * @return $this
21
	 */
22 9
	public function setBody($body) {
23 9
		$this->body = $body;
24
25 9
		return $this;
26
	}
27
28
	/**
29
	 * Returns the body
30
	 *
31
	 * @return string
32
	 */
33 18
	public function getBody() {
34 18
		return $this->body;
35
	}
36
}
37