public static function projectorDidNotWriteAnythingToSnapshot(Projector $projector)
13
{
14
return new static("The projector named {$projector->getName()} didn't write to the snapshot. When snapshotting a projector should write it's state to the snapshot.");
15
}
16
17
public static function projectorThrewExceptionDuringWritingToSnapshot(Projector $projector, Exception $exception)
18
{
19
return new static("The projector named {$projector->getName()} threw an exception while writing to a snapshot", 0, $exception);
20
}
21
22
public static function newEventsStoredDuringSnapshotCreation(Snapshot $snapshot, Collection $newEventsHandledByProjectorOfSnapshot)
The parameter $newEventsHandledByProjectorOfSnapshot is not used and could be removed.
This check looks from parameters that have been defined for a function or method, but which
are not used in the method body.
Loading history...
23
{
24
return new static("While creating a snapshot for projector `{$snapshot->name()}` new events were stored where the projector listens for. The validity of the snapshot could not be guarantied so it was deleted. Try creating the snapshot again.");
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.