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

GeoJsonContentHandler::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Maps\MediaWiki\Content;
4
5
class GeoJsonContentHandler extends \JsonContentHandler {
6
7
	public function __construct( $modelId = GeoJsonContent::CONTENT_MODEL_ID ) {
8
		parent::__construct( $modelId );
9
	}
10
11 1
	protected function getContentClass() {
12 1
		return GeoJsonContent::class;
13
	}
14
15
	public function makeEmptyContent() {
16
		return new GeoJsonContent( GeoJsonContent::newEmptyContentString() );
17
	}
18
19
}
20