code: public function truncateTable($table)
      {
          $sql = $this->db->getQueryBuilder()->truncateTable($table);
  
          return $this->setSql($sql);
      }
docs: Creates a SQL command for truncating a DB table.
  @param string $table the table to be truncated. The name will be properly quoted by the method.
  @return $this the command object itself