field; } /** * @return mixed */ public function getValue() { return $this->value; } public function failedValidation($reason): void { $this->valid = false; $this->invalidReason = $reason; $this->stopPropagation(); } /** * Is the field valid. */ public function isValid(): bool { return $this->valid; } /** * Get the reason this field was invalidated. */ public function getInvalidReason(): string { return $this->invalidReason; } }