1 | <?php |
||
20 | class Delete extends AbstractDmlQuery implements DeleteInterface |
||
21 | { |
||
22 | use WhereTrait; |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | * The table to delete from. |
||
27 | * |
||
28 | * @var string |
||
29 | * |
||
30 | */ |
||
31 | protected $from; |
||
32 | |||
33 | /** |
||
34 | * |
||
35 | * Sets the table to delete from. |
||
36 | * |
||
37 | * @param string $table The table to delete from. |
||
38 | * |
||
39 | * @return $this |
||
40 | * |
||
41 | */ |
||
42 | 13 | public function from($table) |
|
47 | |||
48 | /** |
||
49 | * |
||
50 | * Builds this query object into a string. |
||
51 | * |
||
52 | * @return string |
||
53 | * |
||
54 | */ |
||
55 | 11 | protected function build() |
|
65 | |||
66 | /** |
||
67 | * |
||
68 | * Builds the FROM clause. |
||
69 | * |
||
70 | * @return string |
||
71 | * |
||
72 | */ |
||
73 | 11 | protected function buildFrom() |
|
77 | |||
78 | /** |
||
79 | * |
||
80 | * Template method overridden for queries that allow LIMIT and OFFSET. |
||
81 | * |
||
82 | * Builds the `LIMIT ... OFFSET` clause of the statement. |
||
83 | * |
||
84 | * Note that this will allow OFFSET values with a LIMIT. |
||
85 | * |
||
86 | * @return string |
||
87 | * |
||
88 | */ |
||
89 | 4 | protected function buildLimit() |
|
93 | } |
||
94 |