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

TableMethod::cloneWith()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 1
ccs 0
cts 0
cp 0
nc 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