• Full name: \App\Infrastructure\Services\Content\Workflow\ContentRevisionService
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Properties

dfdb

private \Qubus\Expressive\Database $dfdb

Methods

__construct

public __construct(\Qubus\Expressive\Database $dfdb): mixed

Parameters:

Parameter Type Description
$dfdb \Qubus\Expressive\Database

revisions

public revisions(string $contentId, int $limit = 25): array

Parameters:

Parameter Type Description
$contentId string
$limit int

Throws:


restore

public restore(string $contentId, string $eventId): void

Parameters:

Parameter Type Description
$contentId string
$eventId string

Throws:


normalizeRevision

private normalizeRevision(array $row): array

Parameters:

Parameter Type Description
$row array

snapshotForRevision

private snapshotForRevision(string $contentId, string $eventId): array

Parameters:

Parameter Type Description
$contentId string
$eventId string

Throws:


normalizeRevisionPayload

private normalizeRevisionPayload(array $payload): array

Parameters:

Parameter Type Description
$payload array

assertCompleteSnapshot

private assertCompleteSnapshot(array $snapshot): array

Parameters:

Parameter Type Description
$snapshot array

Throws: