PHP Classes

File: src/SQLTools/Command/DropIndex.php

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

Contents

Class file image Download
<?php

namespace SQLTools\Command;

use
SQLTools\Base\AlterTableEnum;

class
DropIndex extends AlterTable {

    protected
$changeType = AlterTableEnum::DROP;
    private
$idxName;

   
/**
     * @param $idxName - Index name
     */
   
public function __construct($idxName)
    {
       
$this->idxName = $idxName;
    }

    protected function
getWhatToAdd()
    {
        return
"INDEX " . $this->idxName .";";
    }
}