PHP Classes

File: src/SQLTools/Command/DropField.php

Recommend this page to a friend!
  Classes of Rafael Lúcio   SQLTools   src/SQLTools/Command/DropField.php   Download  
File: src/SQLTools/Command/DropField.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/DropField.php
Date: 2 months ago
Size: 479 bytes
 

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * User: rfontes
 * Date: 18/11/13
 * Time: 08:50
 */

namespace SQLTools\Command;


use
SQLTools\Base\AlterTableEnum;

class
DropField extends AlterTable {

    protected
$changeType = AlterTableEnum::DROP;
    protected
$field;

    public function
__construct($table, $fieldName)
    {
       
$this->table = $table;
       
$this->field = $fieldName;
    }

    protected function
getWhatToAdd()
    {
        return
$this->field;
    }

}