Completed
Push — master ( 2d88ea...fafae2 )
by Alexander
07:17 queued 03:46
created

TableNameHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getEscapedTableName() 0 3 1
1
<?php
2
3
/**
4
 * Interface for ActiveRecord SQL-table names handler
5
 *
6
 * @file      TableNameHandler.php
7
 *
8
 * PHP version 7.0+
9
 *
10
 * @author    Alexander Yancharuk <alex at itvault dot info>
11
 * @copyright © 2012-2018 Alexander Yancharuk
12
 * @date      Пт Апр 6 11:58:04 2018
13
 * @license   The BSD 3-Clause License
14
 *            <https://tldrlegal.com/license/bsd-3-clause-license-(revised)>
15
 */
16
17
namespace Veles\Model\Traits;
18
19
trait TableNameHandler
20
{
21 3
	public function getEscapedTableName()
22
	{
23 3
		return '"' . static::TBL_NAME . '"';
0 ignored issues
show
Bug introduced by
The constant Veles\Model\Traits\TableNameHandler::TBL_NAME was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
24
	}
25
}
26