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

TableMethod::table()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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