for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\EventProjector\Exceptions;
use Exception;
use Spatie\EventProjector\Projectors\Projector;
final class CouldNotResetProjector extends Exception
{
public static function doesNotHaveResetStateMethod(Projector $projector): self
return new static("Could not reset the projector named `{$projector->getName()}` because it does not have a `resetState` method.");
}