Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
admin
/
htdocs
/
phpmyadmin-4.9
/
vendor
/
phpmyadmin
/
sql-parser
/
src
/
Statements
/
//srv/admin/htdocs/phpmyadmin-4.9/vendor/phpmyadmin/sql-parser/src/Statements/TruncateStatement.php
<?php /** * `TRUNCATE` statement. */ namespace PhpMyAdmin\SqlParser\Statements; use PhpMyAdmin\SqlParser\Components\Expression; use PhpMyAdmin\SqlParser\Statement; /** * `TRUNCATE` statement. * * @category Statements * * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class TruncateStatement extends Statement { /** * Options for `TRUNCATE` statements. * * @var array */ public static $OPTIONS = array( 'TABLE' => 1 ); /** * The name of the truncated table. * * @var Expression */ public $table; /** * Special build method for truncate statement as Statement::build would return empty string. * * @return string */ public function build() { return 'TRUNCATE TABLE ' . $this->table . ';'; } }