final class ReplaceMutation
    implements DataMutation

Applies REPLACE INTO operation to the shadow store. REPLACE deletes the existing row and inserts the new one.

Methods§

public function __construct(
    string $tableName,
    array<int, string> $primaryKeys = [],
    CandidateKeySet|null $candidateKeys = null,
)

Parameters

$tableNamestringTarget table.
$primaryKeysarray<int, string>Primary key columns.
$candidateKeysCandidateKeySet|nullCandidate keys used for conflict detection.
Calls 1
public function tableName(): string

{@inheritDoc}

Returns

string
Test cases 1

Private surface 2§

Implementation details, listed for orientation only.

private string $tableName
private CandidateKeySet $candidateKeys

Test cases 31§

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 23

Relations§

Instantiated in 2
Type checks 1