for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BrenoRoosevelt\Validation;
trait StopOnFailure
{
protected int $stopOnFailure = StopSign::DONT_STOP;
public function setStopOnFailure(int $stopSign): static
$instance = clone $this;
$instance->stopOnFailure = $stopSign;
return $instance;
}
public function stopOnFailure(): int
return $this->stopOnFailure;