EntityStoreConfig   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 71.43%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 17
ccs 5
cts 7
cp 0.7143
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getItemTableName() 0 3 1
A getPropertyTableName() 0 3 1
1
<?php
2
3
namespace Queryr\EntityStore;
4
5
/**
6
 * @licence GNU GPL v2+
7
 * @author Jeroen De Dauw < [email protected] >
8
 */
9
class EntityStoreConfig {
10
11
	private $prefix;
12
13 1
	public function __construct( $tablePrefix = '' ) {
14 1
		$this->prefix = $tablePrefix;
15 1
	}
16
17
	public function getItemTableName() {
18
		return $this->prefix . 'items';
19
	}
20
21 1
	public function getPropertyTableName() {
22 1
		return $this->prefix . 'properties';
23
	}
24
25
}