ConstraintKey
extends Index
in package
Uses
Constraint
Class ConstraintKey.
Table of Contents
- $columns : array<string|int, mixed>
- $constraint : string|null
- $database : Database
- $name : string|null
- $type : string
- __call() : mixed
- __construct() : mixed
- constraint() : static
- renderColumns() : string
- renderConstraint() : string|null
- renderName() : string|null
- renderType() : string
- renderTypeAttributes() : string|null
- sql() : string
Properties
$columns
protected
array<string|int, mixed>
$columns
$constraint
protected
string|null
$constraint
= null
$database
protected
Database
$database
$name
protected
string|null
$name
$type
protected
string
$type
= ''
Methods
__call()
public
__call(string $method, array<int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<int, mixed>
Return values
mixed —__construct()
public
__construct(Database $database, string|null $name, string $column, string ...$columns) : mixed
Parameters
- $database : Database
- $name : string|null
- $column : string
- $columns : string
Return values
mixed —constraint()
public
constraint(string $name) : static
Parameters
- $name : string
Return values
static —renderColumns()
protected
renderColumns() : string
Return values
string —renderConstraint()
protected
renderConstraint() : string|null
Return values
string|null —renderName()
protected
renderName() : string|null
Return values
string|null —renderType()
protected
renderType() : string
Return values
string —renderTypeAttributes()
protected
renderTypeAttributes() : string|null
Return values
string|null —sql()
protected
abstract sql() : string