Nextcloud PHP API (master)

DropColumn extends ColumnMigrationAttribute
in package

attribute on column drop

Tags
since
30.0.0
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

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
since
30.0.0

definition()

public definition() : string
Tags
since
30.0.0
Return values
string

getDescription()

public getDescription() : string
Tags
since
30.0.0
Return values
string

getNotes()

public getNotes() : array<string|int, mixed>
Tags
since
30.0.0
Return values
array<string|int, mixed>

import()

public import(array<string|int, mixed> $data) : $this
Parameters
$data : array<string|int, mixed>
Tags
since
30.0.0
Return values
$this

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Tags
since
30.0.0
Return values
array<string|int, mixed>

setDescription()

public setDescription(string $description) : $this
Parameters
$description : string
Tags
since
30.0.0
Return values
$this

setName()

public setName(string $name) : $this
Parameters
$name : string
Tags
since
30.0.0
Return values
$this

setNotes()

public setNotes(array<string|int, mixed> $notes) : $this
Parameters
$notes : array<string|int, mixed>
Tags
since
30.0.0
Return values
$this

setTable()

public setTable(string $table) : $this
Parameters
$table : string
Tags
since
30.0.0
Return values
$this

        
On this page

Search results