• Full name: \App\Infrastructure\Services\Content\Workflow\ContentRevisionDiffService
  • 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

diff

public diff(string $contentId, string $eventId): array

Parameters:

Parameter Type Description
$contentId string
$eventId string

Throws:


normalizePayload

private normalizePayload(array $payload): array

Parameters:

Parameter Type Description
$payload array

compare

private compare(array $before, array $after): array

Parameters:

Parameter Type Description
$before array
$after array

revisionEvent

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

Parameters:

Parameter Type Description
$contentId string
$eventId string

Throws:


snapshotAtPlayhead

private snapshotAtPlayhead(string $contentId, int $playhead): array

Parameters:

Parameter Type Description
$contentId string
$playhead int

Throws:


snapshotBeforePlayhead

private snapshotBeforePlayhead(string $contentId, int $playhead): array

Parameters:

Parameter Type Description
$contentId string
$playhead int

Throws:


snapshotForPlayhead

private snapshotForPlayhead(string $contentId, int $playhead, bool $inclusive): array

Parameters:

Parameter Type Description
$contentId string
$playhead int
$inclusive bool

Throws: