StoreConfig   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getStoreName() 0 3 1
1
<?php
2
3
namespace Wikibase\QueryEngine\SQLStore;
4
5
/**
6
 * Configuration for the SQL Store.
7
 * This is purely a value object containing the configuration declaration.
8
 * Access to things config specific (such as the database tables) should
9
 * happen through specific objects (such as the Schema class).
10
 *
11
 * @since 0.1
12
 *
13
 * @licence GNU GPL v2+
14
 * @author Jeroen De Dauw < [email protected] >
15
 */
16
class StoreConfig {
17
18
	/**
19
	 * @var string
20
	 */
21
	private $storeName;
22
23
	/**
24
	 * @param string $storeName
25
	 */
26
	public function __construct( $storeName ) {
27
		$this->storeName = $storeName;
28
	}
29
30
	/**
31
	 * @return string
32
	 */
33
	public function getStoreName() {
34
		return $this->storeName;
35
	}
36
37
}
38