final class NotNullViolationException
    extends SimulationException

Exception thrown when a NOT NULL constraint is violated.

Methods§

public function __construct(string $sql, string $tableName, string $columnName)

Parameters

$sqlstringThe SQL statement.
$tableNamestringThe name of the table.
$columnNamestringThe name of the column that cannot be NULL.
Test cases 4
Calls 2
public function getSql(): string

Get the SQL statement.

Returns

string
Test cases 1
public function getTableName(): string

Get the name of the table.

Returns

string
Test cases 1
public function getColumnName(): string

Get the name of the column that cannot be NULL.

Returns

string
Test cases 1

Private surface 3§

Implementation details, listed for orientation only.

private string $sql
private string $tableName
private string $columnName

Test cases 8§

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

Dedicated tests 4
Other tests reaching this symbol 4

Relations§

Instantiated in 2