<?php
namespace App\Entity\Main;
use Symfony\Component\Validator\Constraints as Assert;
final class UserRegistrationData
{
#[Assert\Email(message: 'form.error.message.notValidEmail2')]
private ?string $email = null;
#[Assert\IsTrue(message: 'The token is invalid')]
private bool $cgu_state = false;
/**
* Set Email
*
* @param string $email
*
* @return self
*/
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
/**
* Get Email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param bool $state
*/
public function setCGU($state)
{
return $this->cgu_state = (bool) $state;
}
/**
* @return bool
*/
public function getCGU()
{
return $this->cgu_state;
}
}