Passed
Push — main ( 29cbd1...100eac )
by Peter
02:37
created

QueryBuilder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 15
rs 10
c 0
b 0
f 0
ccs 4
cts 4
cp 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A select() 0 3 1
A insert() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace QB\PostgreSQL\QueryBuilder;
6
7
use QB\Generic\QueryBuilder\QueryBuilder as GenericQueryBuilder;
8
use QB\Generic\Statement\IInsert;
9
use QB\Generic\Statement\ISelect;
10
use QB\PostgreSQL\Statement\Insert;
11
use QB\PostgreSQL\Statement\Select;
12
13
class QueryBuilder extends GenericQueryBuilder
14
{
15
    /**
16
     * @return Select
17
     */
18 1
    public function select(): ISelect
19
    {
20 1
        return new Select();
21
    }
22
    /**
23
     * @return Insert
24
     */
25 1
    public function insert(): IInsert
26
    {
27 1
        return new Insert();
28
    }
29
}
30