Aplus Framework Docs

Check extends DefinitionPart
in package
Uses Constraint

Class Check.

Tags
see
https://mariadb.com/kb/en/constraint/#check-constraints

Table of Contents

$check  : Closure
$constraint  : string|null
$database  : Database
__call()  : mixed
__construct()  : mixed
constraint()  : static
renderCheck()  : string|null
renderConstraint()  : string|null
sql()  : string

Properties

$check

protected Closure $check

$constraint

protected string|null $constraint = null

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, Closure $check) : mixed
Parameters
$database : Database
$check : Closure
Return values
mixed

constraint()

public constraint(string $name) : static
Parameters
$name : string
Return values
static

renderCheck()

protected renderCheck() : string|null
Return values
string|null

renderConstraint()

protected renderConstraint() : string|null
Return values
string|null

sql()

protected sql() : string
Return values
string

Search results