<?phpnamespace App\Profile\Entity;use Symfony\Component\Validator\Constraints\Email;use Symfony\Component\Validator\Constraints\NotBlank;use Symfony\Component\Validator\Mapping\ClassMetadata;class Register{ protected $country; protected $gender; protected $vat; protected $company; protected $firstname; protected $lastname; protected $email; protected $password; protected $profileType; protected $title; protected $phone; protected $preferredLanguage; protected $accept_privacy; protected $accept_termsofuse; protected $accept_oflegalage; public function getCountry(): ?string { return $this->country; } public function setCountry(string $country) { $this->country = $country; } public function getPreferredLanguage(): ?string { return $this->preferredLanguage; } public function setPreferredLanguage(string $preferredLanguage) { $this->preferredLanguage = $preferredLanguage; } public function getGender(): ?string { return $this->gender; } public function setProfileType(?string $profileType) { $this->profileType = $profileType; } public function getProfileType(): ?string { return $this->profileType; } public function setTitle(?string $title) { $this->title = $title; } public function getTitle(): ?string { return $this->title; } public function setPhone(?string $phone) { $this->phone = $phone; } public function getPhone(): ?string { return $this->phone; } public function setVat(string $vat) { $this->vat = $vat; } public function getVat(): ?string { return $this->vat; } public function setCompany(string $company) { $this->company = $company; } public function getCompany(): ?string { return $this->company; } public function setGender(string $gender) { $this->gender = $gender; } public function getFirstname(): ?string { return $this->firstname; } public function setFirstname(string $firstname) { $this->firstname = $firstname; } public function getLastname(): ?string { return $this->lastname; } public function setLastname(string $lastname) { $this->lastname = $lastname; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email) { $this->email = $email; } public function getPassword(): ?string { return $this->password; } public function setPassword(string $password) { $this->password = $password; } public function getAcceptPrivacy(): ?string { return $this->accept_privacy; } public function setAcceptPrivacy(string $accept_privacy) { $this->accept_privacy = $accept_privacy; } public function getAcceptTermsofuse(): ?string { return $this->accept_termsofuse; } public function setAcceptTermsofuse(string $accept_termsofuse) { $this->accept_termsofuse = $accept_termsofuse; } public function getAcceptOfLegalAge(): ?string { return $this->accept_oflegalage; } public function setAcceptOfLegalAge(string $accept_oflegalage) { $this->accept_oflegalage = $accept_oflegalage; } public static function loadValidatorMetadata(ClassMetadata $metadata): void { $metadata->addPropertyConstraint('email', new NotBlank()); $metadata->addPropertyConstraint('email', new Email()); $metadata->addPropertyConstraint('password', new NotBlank()); }}