Completed
Push — styling ( 65b228 )
by Jeroen De
04:06
created

GeoJsonFetcherResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 19
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getContent() 0 3 1
A getTitleValue() 0 3 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace Maps\DataAccess;
6
7
class GeoJsonFetcherResult {
8
9
	private $content;
10
	private $source;
11
12 2
	public function __construct( array $content, ?\TitleValue $source ) {
13 2
		$this->content = $content;
14 2
		$this->source = $source;
15 2
	}
16
17 2
	public function getContent(): array {
18 2
		return $this->content;
19
	}
20
21 2
	public function getTitleValue(): ?\TitleValue {
22 2
		return $this->source;
23
	}
24
25
}
26