CliApplicationFactory::newApplication()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 3
Bugs 0 Features 3
Metric Value
c 3
b 0
f 3
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Wikibase\EntityStore\Console;
4
5
use Symfony\Component\Console\Application;
6
7
/**
8
 * @licence GPLv2+
9
 * @author Thomas Pellissier Tanon
10
 */
11
class CliApplicationFactory {
12
13 2
	public function newApplication() {
14 2
		$application = new Application( 'WikibaseEntityStore' );
15
16 2
		$application->add( new ImportJsonDumpCommand() );
17 2
		$application->add( new ImportIncrementalXmlDumpCommand() );
18
19 2
		return $application;
20
	}
21
}
22