bytic /
database
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Nip\Database\Query; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Class Truncate |
||
| 7 | . |
||
| 8 | */ |
||
| 9 | class Truncate extends AbstractQuery |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @return string |
||
| 13 | */ |
||
| 14 | public function assemble() |
||
| 15 | { |
||
| 16 | return 'TRUNCATE TABLE ' . $this->getTable(); |
||
|
0 ignored issues
–
show
|
|||
| 17 | } |
||
| 18 | } |
||
| 19 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: