Group::setData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace kalanis\kw_mapper\Storage\Shared\QueryBuilder;
4
5
6
class Group
7
{
8
    protected string $tableName = '';
9
    /** @var string|int */
10
    protected $columnName = '';
11
12
    /**
13
     * @param string $tableName
14
     * @param string|int $columnName
15
     * @return $this
16
     */
17 13
    public function setData(string $tableName, $columnName): self
18
    {
19 13
        $this->tableName = $tableName;
20 13
        $this->columnName = $columnName;
21 13
        return $this;
22
    }
23
24 10
    public function getTableName(): string
25
    {
26 10
        return $this->tableName;
27
    }
28
29
    /**
30
     * @return string|int
31
     */
32 13
    public function getColumnName()
33
    {
34 13
        return $this->columnName;
35
    }
36
}
37