FrozenValueObject   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 3
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 3
cbo 0
dl 0
loc 35
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getMainContent() 0 3 1
A setMainContent() 0 4 1
A getHeaderContent() 0 3 1
A setHeaderContent() 0 4 1
A getFooterContent() 0 3 1
A setFooterContent() 0 4 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\FreezableValueObject\Tests\Unit;
6
7
use WMDE\FreezableValueObject\FreezableValueObject;
8
9
/**
10
 * @license GPL-2.0-or-later
11
 * @author Jeroen De Dauw < [email protected] >
12
 */
13
class FrozenValueObject {
14
	use FreezableValueObject;
15
16
	private $mainContent;
17
	private $headerContent;
18
	private $footerContent;
19
20
	public function getMainContent(): string {
21
		return $this->mainContent;
22
	}
23
24
	public function setMainContent( string $mainContent ): void {
25
		$this->assertIsWritable();
26
		$this->mainContent = $mainContent;
27
	}
28
29
	public function getHeaderContent(): string {
30
		return $this->headerContent;
31
	}
32
33
	public function setHeaderContent( string $headerContent ): void {
34
		$this->assertIsWritable();
35
		$this->headerContent = $headerContent;
36
	}
37
38
	public function getFooterContent(): string {
39
		return $this->footerContent;
40
	}
41
42
	public function setFooterContent( string $footerContent ): void {
43
		$this->assertIsWritable();
44
		$this->footerContent = $footerContent;
45
	}
46
47
}
48