public function addError(string $fieldName, string $message) : Validator { $type = $this->options->getFieldType(); $this->errors[] = new ValidationError($type, $fieldName, $message); return $this; }
public function addError(string $fieldName, string $message) : Validator { $type = $this->options->getFieldType(); $this->errors[] = new ValidationError($type, $fieldName, $message); return $this; }