1 | <?php |
||
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 |