| @@ 216-229 (lines=14) @@ | ||
| 213 | * |
|
| 214 | * @return string the update query. |
|
| 215 | */ |
|
| 216 | private function getUpdateQuery() |
|
| 217 | { |
|
| 218 | $result = $this->getUpdateClause(); |
|
| 219 | ||
| 220 | if ($where = $this->getWhereClause()) { |
|
| 221 | $result .= ' ' . $where; |
|
| 222 | } |
|
| 223 | ||
| 224 | if ($limit = $this->getLimitClause()) { |
|
| 225 | $result .= ' ' . $limit; |
|
| 226 | } |
|
| 227 | ||
| 228 | return $result; |
|
| 229 | } |
|
| 230 | ||
| 231 | /** |
|
| 232 | * {@inheritdoc} |
|
| @@ 256-270 (lines=15) @@ | ||
| 253 | * |
|
| 254 | * @return string the delete query. |
|
| 255 | */ |
|
| 256 | private function getDeleteQuery() |
|
| 257 | { |
|
| 258 | ||
| 259 | $result = $this->getDeleteClause(); |
|
| 260 | ||
| 261 | if ($where = $this->getWhereClause()) { |
|
| 262 | $result .= ' ' . $where; |
|
| 263 | } |
|
| 264 | ||
| 265 | if ($limit = $this->getLimitClause()) { |
|
| 266 | $result .= ' ' . $limit; |
|
| 267 | } |
|
| 268 | ||
| 269 | return $result; |
|
| 270 | } |
|
| 271 | ||
| 272 | /** |
|
| 273 | * {@inheritdoc} |
|