<?php
namespace App\Entity;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=DonneeCompteClientRepository::class)
*/
class DonneeCompteClient
{
// Constantes pour les états d'activation
public const ACTIVATION_INACTIVE = 0;
public const ACTIVATION_PENDING = 1;
public const ACTIVATION_ACTIVE = 2;
// Trigramme pour le responsable des dernières modifications
public const USER_DERNIERE_MODIF_MCC = 'MCC';
/**
* @ORM\Id
* @ORM\Column(type="integer", nullable=false)
*/
private int $numeroClient;
/**
* @ORM\Column(type="string", length=256, nullable=true)
*/
private ?string $rue1;
/**
* @ORM\Column(type="string", length=256, nullable=true)
*/
private ?string $rue2;
/**
* @ORM\Column(type="string", length=256, nullable=true)
*/
private ?string $rue3;
/**
* @ORM\Column(type="string", length=256, nullable=true)
*/
private ?string $ville;
/**
* @ORM\Column(type="string", length=5, nullable=true)
*/
private ?string $codePostal;
/**
* @ORM\Column(type="string", length=256, nullable=true)
*/
private ?string $paysRegion;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private ?string $telephoneFixe1;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private ?string $telephoneFixe2;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private ?string $telephoneMobile1;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private ?string $telephoneMobile2;
/**
* @ORM\Column(type="date", nullable=true)
*/
private ?DateTime $dateNaissance;
/**
* @ORM\Column(type="string", length=5, nullable=true)
*/
private ?string $cpNaissance;
/**
* @ORM\Column(type="string", length=256, nullable=true)
*/
private ?string $villeNaissance;
/**
* @ORM\Column(type="string", length=256, nullable=true)
*/
private ?string $paysNaissance;
/**
* @ORM\Column(type="boolean", nullable=false)
*/
private bool $consentComCommercial;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Email()
*/
private ?string $email;
/**
* @ORM\Column(type="integer", nullable=false)
*/
private int $activationCompte = 0;
/**
* @ORM\Column(type="datetime", nullable=false)
*/
private DateTime $dateDerniereModif;
/**
* @ORM\Column(type="string", length=50, nullable=false)
*/
private string $userDerniereModif;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private ?string $civilite;
/**
* @ORM\Column(type="string", length=256, nullable=true)
*/
private ?string $nom;
/**
* @ORM\Column(type="string", length=256, nullable=true)
*/
private ?string $prenom;
public function __construct()
{
$this->dateDerniereModif = new DateTime();
$this->consentComCommercial = false;
}
public function getUserDerniereModif(): string
{
return $this->userDerniereModif;
}
public function setUserDerniereModif(string $userDerniereModif): self
{
$this->userDerniereModif = $userDerniereModif;
return $this;
}
public function getDateDerniereModif(): DateTime
{
return $this->dateDerniereModif;
}
public function setDateDerniereModif(DateTime $dateDerniereModif): self
{
$this->dateDerniereModif = $dateDerniereModif;
return $this;
}
public function getActivationCompte(): ?int
{
return $this->activationCompte;
}
public function setActivationCompte(int $activationCompte): self
{
$this->activationCompte = $activationCompte;
return $this;
}
public function getEmail(): ?string
{
return $this->email ?? null;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function isConsentComCommercial(): bool
{
return $this->consentComCommercial;
}
public function setConsentComCommercial(bool $consentComCommercial): self
{
$this->consentComCommercial = $consentComCommercial;
return $this;
}
public function getPaysNaissance(): ?string
{
return $this->paysNaissance ?? null;
}
public function setPaysNaissance(?string $paysNaissance): self
{
$this->paysNaissance = $paysNaissance;
return $this;
}
public function getVilleNaissance(): ?string
{
return $this->villeNaissance ?? null;
}
public function setVilleNaissance(?string $villeNaissance): self
{
$this->villeNaissance = $villeNaissance;
return $this;
}
public function getCpNaissance(): ?string
{
return $this->cpNaissance ?? null;
}
public function setCpNaissance(?string $cpNaissance): self
{
$this->cpNaissance = $cpNaissance;
return $this;
}
public function getDateNaissance(): ?DateTime
{
return $this->dateNaissance;
}
public function setDateNaissance(?DateTime $dateNaissance): self
{
$this->dateNaissance = $dateNaissance;
return $this;
}
public function getTelephoneMobile2(): ?string
{
return $this->telephoneMobile2 ?? null;
}
public function setTelephoneMobile2(?string $telephoneMobile2): self
{
$this->telephoneMobile2 = $telephoneMobile2;
return $this;
}
public function getTelephoneMobile1(): ?string
{
return $this->telephoneMobile1 ?? null;
}
public function setTelephoneMobile1(?string $telephoneMobile1): self
{
$this->telephoneMobile1 = $telephoneMobile1;
return $this;
}
public function getTelephoneFixe2(): ?string
{
return $this->telephoneFixe2 ?? null;
}
public function setTelephoneFixe2(?string $telephoneFixe2): self
{
$this->telephoneFixe2 = $telephoneFixe2;
return $this;
}
public function getTelephoneFixe1(): ?string
{
return $this->telephoneFixe1 ?? null;
}
public function setTelephoneFixe1(?string $telephoneFixe1): self
{
$this->telephoneFixe1 = $telephoneFixe1;
return $this;
}
public function getPaysRegion(): ?string
{
return $this->paysRegion ?? null;
}
public function setPaysRegion(?string $paysRegion): self
{
$this->paysRegion = $paysRegion;
return $this;
}
public function getCodePostal(): ?string
{
return $this->codePostal ?? null;
}
public function setCodePostal(?string $codePostal): self
{
$this->codePostal = $codePostal;
return $this;
}
public function getVille(): ?string
{
return $this->ville ?? null;
}
public function setVille(?string $ville): self
{
$this->ville = $ville;
return $this;
}
public function getRue3(): ?string
{
return $this->rue3 ?? null;
}
public function setRue3(?string $rue3): self
{
$this->rue3 = $rue3;
return $this;
}
public function getRue2(): ?string
{
return $this->rue2 ?? null;
}
public function setRue2(?string $rue2): self
{
$this->rue2 = $rue2;
return $this;
}
public function getRue1(): ?string
{
return $this->rue1 ?? null;
}
public function setRue1(?string $rue1): self
{
$this->rue1 = $rue1;
return $this;
}
public function getNumeroClient(): int
{
return $this->numeroClient;
}
public function setNumeroClient(int $numeroClient): self
{
$this->numeroClient = $numeroClient;
return $this;
}
public function getCivilite(): ?string
{
return $this->civilite;
}
public function setCivilite(?string $civilite): self
{
$this->civilite = $civilite;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
}