PHP Classes

File: src/SQLTools/Command/CreateDataBase.php

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

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * User: rfontes
 * Date: 14/11/13
 * Time: 10:31
 */

namespace SQLTools\Command;


use
SQLTools\Base\ICommand;

class
CreateDataBase implements ICommand {

    private
$name;

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

    public function
getSql()
    {
        return
"CREATE DATABASE `{$this->name}`;\n";
    }

}