Passed
Branch release (bd7374)
by Henry
03:48
created

AbstractQuery   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setTable() 0 4 1
A setTableAlias() 0 4 1
1
<?php
2
3
namespace Divergence\IO\Database\Query;
4
5
abstract class AbstractQuery
6
{
7
    public string $table;
8
    public string $tableAlias;
9
10
    /** @return static */
11 81
    public function setTable(string $table): AbstractQuery
12
    {
13 81
        $this->table = $table;
14 81
        return $this;
15
    }
16
17
    /** @return static */
18 17
    public function setTableAlias(string $alias): AbstractQuery
19
    {
20 17
        $this->tableAlias = $alias;
21 17
        return $this;
22
    }
23
24
    abstract public function __toString(): string;
25
}
26