Completed
Push — newparam ( 72433c...c5fad3 )
by Jeroen De
01:21
created

GeoJsonNewPageUi::addToOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 0
cts 12
cp 0
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Maps\Presentation;
4
5
class GeoJsonNewPageUi {
6
7
	private $output;
8
9
	public function __construct( OutputFacade $output ) {
10
		$this->output = $output;
11
	}
12
13
	public function addToOutput() {
14
		$this->output->addModules( 'ext.maps.geojson.new.page' );
15
16
		$this->output->addHtml(
17
			\Html::element(
18
				'button',
19
				[
20
					'id' => 'maps-geojson-new'
21
				],
22
				wfMessage( 'maps-geo-json-create-page-button' )->inContentLanguage()->text()
23
			)
24
		);
25
	}
26
27
}
28