class NotSoftDeletedInDatabase extends Constraint

Properties

protected int $show

Number of records that will be shown in the console in case of failure.

Methods

__construct(Connection $database, array $data, string $deletedAtColumn)

Create a new constraint instance.

bool
matches(string $table)

Check if the data is found in the given table.

string
failureDescription(string $table)

Get the description of the failure.

string
getAdditionalInfo(string $table)

Get additional info about the records found in the database table.

string
toString()

Get a string representation of the object.

Details

at line 20
__construct(Connection $database, array $data, string $deletedAtColumn)

Create a new constraint instance.

Parameters

Connection $database
array $data
string $deletedAtColumn

at line 32
bool matches(string $table)

Check if the data is found in the given table.

Parameters

string $table

Return Value

bool

at line 45
string failureDescription(string $table)

Get the description of the failure.

Parameters

string $table

Return Value

string

at line 61
protected string getAdditionalInfo(string $table)

Get additional info about the records found in the database table.

Parameters

string $table

Return Value

string

at line 83
string toString()

Get a string representation of the object.

Return Value

string