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

AbstractQuery   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setTable() 0 4 1
A setTableAlias() 0 4 1
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