TTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTable() 0 3 1
A setTable() 0 3 1
1
<?php
2
3
namespace kalanis\kw_mapper\Mappers\Database;
4
5
6
/**
7
 * Trait TTable
8
 * @package kalanis\kw_mapper\Mappers\Database
9
 */
10
trait TTable
11
{
12
    protected string $tableName = '';
13
14 18
    public function setTable(string $tableName): void
15
    {
16 18
        $this->tableName = $tableName;
17
    }
18
19 54
    public function getTable(): string
20
    {
21 54
        return $this->tableName;
22
    }
23
}
24