FrozenValueObject::setMainContent()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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