TermStoreConfig   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getLabelTableName() 0 3 1
A getAliasesTableName() 0 3 1
1
<?php
2
3
namespace Queryr\TermStore;
4
5
/**
6
 * Package public
7
 * @since 0.2
8
 *
9
 * @licence GNU GPL v2+
10
 * @author Jeroen De Dauw < [email protected] >
11
 */
12
class TermStoreConfig {
13
14
	private $prefix;
15
16
	public function __construct( string $tablePrefix = '' ) {
17
		$this->prefix = $tablePrefix;
18
	}
19
20
	public function getLabelTableName(): string {
21
		return $this->prefix . 'labels';
22
	}
23
24
	public function getAliasesTableName(): string {
25
		return $this->prefix . 'aliases';
26
	}
27
28
}