for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BrenoRoosevelt\Validation;
final class ErrorMessage implements Error
{
public function __construct(private string $message, private Rule $rule, private ?string $field = null)
}
/** @inheritDoc */
public function message(): string
return $this->message;
public function field(): ?string
return $this->field;
public function rule(): Rule
return $this->rule;