src/Phinx/Db/Action/AddColumn.php
public static function build(Table $table, $columnName, $type = null, $options = [])
    {
        $column = new Column();
        $column->setName($columnName);
        $column->setType($type);
        $column->setOptions($options); // map options to column methods

        return new static($table, $column);
    }
public static function build(Table $table, $columnName, $type = null, $options = [])
    {
        $column = new Column();
        $column->setName($columnName);
        $column->setType($type);
        $column->setOptions($options); // map options to column methods

        return new static($table, $column);
    }
public static function build ( Table $ table , $ columnName , $ type = null , $ options = [ ] ) { $ column = new Column ( ) ; $ column -> setName ( $ columnName ) ; $ column -> setType ( $ type ) ; $ column -> setOptions ( $ options ) ; // map options to column methods return new static ( $ table , $ column ) ; }
Returns a new AddColumn object after assembling the given commands

@param Table $table The table to add the column to
@param mixed $columnName The column name
@param mixed $type The column type
@param mixed $options The column options
@return AddColumn
Returns a new AddColumn object after assembling the given commands