Completed
Push — master ( 670622...a5ffbc )
by Edson
01:42
created

Keyword   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A orderBy() 0 4 1
1
<?php
2
3
namespace Keep;
4
5
trait Keyword
6
{
7
    private $keyword = '';
8
9 2
    public function orderBy(array $columns, $order): self
10
    {
11 2
        $this->keyword = 'ORDER BY `' . Tool::columns($columns) . "` {$order}";
12 2
        return $this;
13
    }
14
}
15