PHP Classes

File: src/SQLTools/Command/AddField.php

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

Contents

Class file image Download
<?php

namespace SQLTools\Command;

use
SQLTools\Entity\Field;

class
AddField extends AlterTable {

   
/**
     * @var Field $field
     */
   
private $field;

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

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

}