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

GeoJsonNewPageUi   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 23
ccs 0
cts 15
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A addToOutput() 0 13 1
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