final class SqlBehaviorRule

Represents a single SQL behavior rule with pattern and associated behavior.

Methods§

public function matches(string $sql): bool

Check if the given SQL matches this rule.

Parameters

$sqlstring

Returns

bool
Test cases 7
Calls 4
public function behavior(): UnsupportedSqlBehavior

Get the behavior to apply when this rule matches.

Test cases 1
public function pattern(): string

Get the pattern.

Returns

string
Test cases 1
public function isRegex(): bool

Check if this rule uses regex matching.

Returns

bool
Test cases 1

Private surface 3§

Implementation details, listed for orientation only.

private string $pattern
private bool $isRegex
private UnsupportedSqlBehavior $behavior

Test cases 11§

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

Dedicated tests 10
Other tests reaching this symbol 1

Relations§

Instantiated in 1