Completed
Branch develop (6af1b6)
by Henry
08:27
created

AbstractQuery::setTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
namespace Divergence\IO\Database\Query;
3
4
abstract class AbstractQuery
5
{
6
    public string $table;
7
    public string $tableAlias;
8
9
    /** @return static */
10
    public function setTable(string $table): AbstractQuery
11
    {
12
        $this->table = $table;
13
        return $this;
14
    }
15
16
    /** @return static */
17
    public function setTableAlias(string $alias): AbstractQuery
18
    {
19
        $this->tableAlias = $alias;
20
        return $this;
21
    }
22
23
    abstract public function __toString(): string;
24
}
25