Completed
Push — master ( 755d2f...4eddf0 )
by Christopher
05:22
created

TableMethod   A

Complexity

Total Complexity 18

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 20
wmc 18
lcom 0
cbo 0
ccs 0
cts 4
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A table() 0 4 1
cloneWith() 0 1 ?
1
<?php
2
3
namespace AsyncPHP\Icicle\Database\Builder\Method;
4
5
/**
6
 * @property string $table
7
 */
8
trait TableMethod
9
{
10
    /**
11
     * @param string $table
12
     *
13
     * @return static
14
     */
15
    public function table($table)
16
    {
17
        return $this->cloneWith("table", $table);
18
    }
19
20
    /**
21
     * @param string $key
22
     * @param mixed $value
23
     *
24
     * @return static
25
     */
26
    abstract protected function cloneWith($key, $value);
27
}
28