Completed
Push — master ( d819e3...4fe283 )
by Christopher
03:01 queued 12s
created

TableMethod   A

Complexity

Total Complexity 17

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
cloneWith() 0 1 ?
A table() 0 4 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 1
    public function table($table)
16
    {
17 1
        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