CliApplicationFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 3
Metric Value
wmc 1
c 3
b 0
f 3
lcom 0
cbo 3
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A newApplication() 0 8 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