for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Phypes\Validator;
use Phypes\Result;
abstract class AbstractValidator implements Validator
{
protected function success()
return new Result(true);
}
protected function failure($errors = []) {
return new Result(false, $errors);