<?phpnamespace App\Form\Model;use Symfony\Component\Validator\Constraints as Assert;/** * Class ForgotPassword. */class ForgotPassword{ #[Assert\NotBlank(message: 'form.error.required')] #[Assert\Email(message: "The email '{{ value }}' is not a valid email.")] protected string $email; public function getEmail(): string { return $this->email; } public function setEmail(string $email): void { $this->email = $email; }}