final class FollowedConstraint

One constraint being followed out from a parent, and what to say of it.

Following a key needs the constraint itself, the table that holds it, and the statement being simulated: the first two say what to do, and all three say what to tell the caller when the action forbids the statement. They travel together for the whole of one cascade, so they are one thing.

Properties§

public string $childTable
public string $constraintName
public ForeignKeyDefinition $foreignKey
public string $sql

Methods§

public function __construct(
    public string $childTable,
    public string $constraintName,
    public ForeignKeyDefinition $foreignKey,
    public string $sql,
)

Parameters

$childTablestringTable holding the key
$constraintNamestringConstraint being followed, as the schema names it
$foreignKeyForeignKeyDefinitionConstraint being followed
$sqlstringStatement being simulated
Test cases 1

Test cases 10§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 9

Relations§

Instantiated in 1
Type declarations 3