GeoJsonFetcherResult   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 25
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getContent() 0 3 1
A getTitleValue() 0 3 1
A getRevisionId() 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 $revisionId;
11
	private $source;
12
13 3
	public function __construct( array $content, ?int $revisionId, ?\TitleValue $source ) {
14 3
		$this->content = $content;
15 3
		$this->revisionId = $revisionId;
16 3
		$this->source = $source;
17 3
	}
18
19 3
	public function getContent(): array {
20 3
		return $this->content;
21
	}
22
23 3
	public function getTitleValue(): ?\TitleValue {
24 3
		return $this->source;
25
	}
26
27 3
	public function getRevisionId(): ?int {
28 3
		return $this->revisionId;
29
	}
30
31
}
32