final class TransactionStatement

A structure-aware transaction-control statement.

Methods§

public function __construct(
    private TransactionOperation $operation,
    private string $savepointName = '',
)

Binds a statement to what it does, and to the savepoint it names.

Every way of building one goes through a named constructor, because which operation it is decides whether a name means anything.

Parameters

$operationTransactionOperation
$savepointNamestring
public static function begin(): self
public static function requiredName(string $name): string

Private surface 2§

Implementation details, listed for orientation only.

private TransactionOperation $operation
private string $savepointName = ''

Test cases 22§

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

Dedicated tests 8
Other tests reaching this symbol 14

Relations§

Static calls 20
Method calls 1
Type declarations 10