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

GeoJsonFetcherResult::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 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