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

GeoJsonContentHandler::getContentClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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