1 | <?php |
||
30 | class RemoveColumn extends Action |
||
31 | { |
||
32 | |||
33 | /** |
||
34 | * The column to be removed |
||
35 | * |
||
36 | * @var Column |
||
37 | */ |
||
38 | protected $column; |
||
39 | |||
40 | /** |
||
41 | * Constructor |
||
42 | * |
||
43 | * @param Table $table The table where the column is |
||
44 | * @param Column $column The column to be removed |
||
45 | */ |
||
46 | public function __construct(Table $table, Column $column) |
||
51 | |||
52 | /** |
||
53 | * Creates a new RemoveColumn object after assembling the |
||
54 | * passed arguments. |
||
55 | * |
||
56 | * @param Table $table The table where the column is |
||
57 | * @param mixed $columnName The name of the column to drop |
||
58 | * @return RemoveColumn |
||
59 | */ |
||
60 | public static function build(Table $table, $columnName) |
||
67 | |||
68 | /** |
||
69 | * Returns the column to be dropped |
||
70 | * |
||
71 | * @return Column |
||
72 | */ |
||
73 | public function getColumn() |
||
77 | } |
||
78 |