Flow PHP

UniqueConstraint implements Constraint, Stateful

FinalYes

Interfaces

Constraint
Stateful
Every run starts from a fresh instance; a parallel read never ships it to a worker.

Methods

__construct()  : mixed
firstViolation()  : int|null
Index of the first row that violates; state advances over the rows before it.
fresh()  : static
A new instance in the state this one was constructed in.
toString()  : string
violation()  : string

Methods

firstViolation()

Index of the first row that violates; state advances over the rows before it.

public firstViolation(Rows $rows) : int|null
Parameters
$rows : Rows
Return values
int|null

fresh()

A new instance in the state this one was constructed in.

public fresh() : static
Return values
static

violation()

public violation(Rows $rows, int $index) : string
Parameters
$rows : Rows
$index : int
Return values
string
On this page

Search results