29 lines
467 B
PHP
29 lines
467 B
PHP
<?php
|
|
|
|
|
|
namespace Driver\SQL\Query;
|
|
|
|
use Driver\SQL\SQL;
|
|
|
|
class Drop extends Query {
|
|
|
|
private string $table;
|
|
|
|
/**
|
|
* Drop constructor.
|
|
* @param SQL $sql
|
|
* @param string $table
|
|
*/
|
|
public function __construct(SQL $sql, string $table) {
|
|
parent::__construct($sql);
|
|
$this->table = $table;
|
|
}
|
|
|
|
public function execute(): bool {
|
|
return $this->sql->executeDrop($this);
|
|
}
|
|
|
|
public function getTable(): string {
|
|
return $this->table;
|
|
}
|
|
} |