final |
|---|
readonly |
What a sync did: each worker's outcome, in the order they ran, and what stopped it — a worker's rollback or blocker (its outcome is the last one) or an exception. A dry run — the readiness check — rolled everything back, whatever the outcomes say; it runs every worker and collects every blocker.
| Methods | ||
|---|---|---|
public
|
__construct(
bool $dry,
array<class-string<SyncWorkerInterface>, Outcome> $outcomes,
?Throwable $failure = null,
class-string<SyncWorkerInterface>|null $failedWorker = null,
)
|
# |
public
|
ok(): bool
|
# |
public
|
blockers(): list<array{worker: class-string<SyncWorkerInterface>, message: Message}>
|
# |
public
|
refused(): bool
|
# |
| Properties | |||
|---|---|---|---|
public
|
bool
|
$dry
|
# |
public
|
array<class-string<SyncWorkerInterface>, Outcome>
|
$outcomes
|
# |
public
|
?Throwable
|
$failure
|
# |
public
|
class-string<SyncWorkerInterface>|null
|
$failedWorker
|
# |