Skip to content

CreateColumn

Properties

table

protected ?\Qubus\Expressive\Schema\CreateTable $table

Methods

__construct

public __construct(\Qubus\Expressive\Schema\CreateTable $table, string $name, string $type): mixed

Parameters:

Parameter Type Description
$table \Qubus\Expressive\Schema\CreateTable
$name string
$type string

getTable

public getTable(): \Qubus\Expressive\Schema\CreateTable

autoincrement

public autoincrement(?string $name = null): $this

Parameters:

Parameter Type Description
$name ?string

primary

public primary(?string $name = null): $this

Parameters:

Parameter Type Description
$name ?string

unique

public unique(?string $name = null): $this

Parameters:

Parameter Type Description
$name ?string

index

public index(?string $name = null): $this

Parameters:

Parameter Type Description
$name ?string

Inherited methods

__construct

public __construct(string $name, ?string $type = null): mixed

Parameters:

Parameter Type Description
$name string
$type ?string

getName

public getName(): string

getType

public getType(): string

getProperties

public getProperties(): array

setType

public setType(string $type): $this

Parameters:

Parameter Type Description
$type string

set

public set(string $name, mixed $value): $this

Parameters:

Parameter Type Description
$name string
$value mixed

has

public has(string $name): bool

Parameters:

Parameter Type Description
$name string

get

public get(string $name, mixed|null $default = null): mixed|null

Parameters:

Parameter Type Description
$name string
$default mixed|null

size

public size(string $value): $this

Parameters:

Parameter Type Description
$value string

notNull

public notNull(): $this

description

public description(string $comment): $this

Parameters:

Parameter Type Description
$comment string

defaultValue

public defaultValue(mixed $value): $this

Parameters:

Parameter Type Description
$value mixed

unsigned

public unsigned(bool $value = true): $this

Parameters:

Parameter Type Description
$value bool

length

public length(mixed $value): $this

Parameters:

Parameter Type Description
$value mixed


Automatically generated on 2025-10-13