PHP Classes

File: src/SQLTools/Command/DropTable.php

Recommend this page to a friend!
  Classes of Rafael Lúcio   SQLTools   src/SQLTools/Command/DropTable.php   Download  
File: src/SQLTools/Command/DropTable.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: SQLTools
Create and alter databases, tables and indexes
Author: By
Last change: Update of src/SQLTools/Command/DropTable.php
Date: 9 months ago
Size: 341 bytes
 

Contents

Class file image Download
<?php

namespace SQLTools\Command;


use
SQLTools\Base\ICommand;

class
DropTable implements ICommand {

   
/**
     * Table name
     * @var string
     */
   
private $name;

    public function
__construct($name)
    {
       
$this->name = $name;
    }

    public function
getSql()
    {
        return
"DROP {$this->name};";
    }

}