for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Smoren\Validator\Structs;
use Smoren\Validator\Exceptions\ValidationError;
use Smoren\Validator\Interfaces\CheckInterface;
class RetrospectiveCheck implements CheckInterface
{
/**
* {@inheritDoc}
*
* @throws ValidationError if there are previous errors
*/
public function execute($value, array $previousErrors): void
if (\count($previousErrors)) {
throw ValidationError::fromCheckErrors($value, $previousErrors);
}
* @return true
public function isInterrupting(): bool
return true;
* @param bool $value
* @return static
public function setInterrupting(bool $value = true): self
return $this;