DropColumn
extends ColumnMigrationAttribute
in package
attribute on column drop
Tags
Attributes
- #[Attribute]
- \Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS
Table of Contents
Properties
- $description : string
- $name : string
- $notes : array<string|int, mixed>
- $table : string
- $type : ColumnType|null
Methods
- __construct() : mixed
- definition() : string
- getDescription() : string
- getName() : string
- getNotes() : array<string|int, mixed>
- getTable() : string
- getType() : ColumnType|null
- import() : $this
- jsonSerialize() : array<string|int, mixed>
- setDescription() : $this
- setName() : $this
- setNotes() : $this
- setTable() : $this
- setType() : $this
Properties
$description
private
string
$description
= ''
$name
private
string
$name
= ''
$notes
private
array<string|int, mixed>
$notes
= []
$table
private
string
$table
$type
private
ColumnType|null
$type
= null
Methods
__construct()
public
__construct(string $table[, string $name = '' ][, ColumnType|null $type = null ][, string $description = '' ][, array<string|int, mixed> $notes = [] ]) : mixed
Parameters
- $table : string
-
name of the database table
- $name : string = ''
-
name of the column
- $type : ColumnType|null = null
-
type of the column
- $description : string = ''
-
description of the migration
- $notes : array<string|int, mixed> = []
-
notes about the migration/column
Tags
definition()
public
definition() : string
Tags
Return values
stringgetDescription()
public
getDescription() : string
Tags
Return values
stringgetName()
public
getName() : string
Tags
Return values
stringgetNotes()
public
getNotes() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getTable()
public
getTable() : string
Tags
Return values
stringgetType()
public
getType() : ColumnType|null
Tags
Return values
ColumnType|nullimport()
public
import(array<string|int, mixed> $data) : $this
Parameters
- $data : array<string|int, mixed>
Tags
Return values
$thisjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>setDescription()
public
setDescription(string $description) : $this
Parameters
- $description : string
Tags
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : string
Tags
Return values
$thissetNotes()
public
setNotes(array<string|int, mixed> $notes) : $this
Parameters
- $notes : array<string|int, mixed>
Tags
Return values
$thissetTable()
public
setTable(string $table) : $this
Parameters
- $table : string
Tags
Return values
$thissetType()
public
setType(ColumnType|null $type) : $this
Parameters
- $type : ColumnType|null