TermStoreConfig::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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
}