Completed
Push — master ( b7f3a6...323c95 )
by Jeroen De
03:55
created

GeoJsonFetcherResult   A

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 2
	public function __construct( array $content, ?int $revisionId, ?\TitleValue $source ) {
14 2
		$this->content = $content;
15 2
		$this->revisionId = $revisionId;
16 2
		$this->source = $source;
17 2
	}
18
19 2
	public function getContent(): array {
20 2
		return $this->content;
21
	}
22
23 2
	public function getTitleValue(): ?\TitleValue {
24 2
		return $this->source;
25
	}
26
27 2
	public function getRevisionId(): ?int {
28 2
		return $this->revisionId;
29
	}
30
31
}
32