src/Entity/HistoryUser.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HistoryUserRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassHistoryUserRepository::class)]
  7. class HistoryUser
  8. {
  9.     CONST ADD_CREDIT_PACK "pack_attestation_add";
  10.     CONST SUP_CREDIT_PACK "pack_attestation_sup";
  11.     CONST CREATE_ATTESTATION_ADMIN "admin_attestation_create";
  12.     CONST CREATE_ATTESTATION_ADMIN_BO "admin_bo_attestation_create";
  13.     CONST CREATE_ATTESTATION "attestation_create";
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column]
  17.     private ?int $id null;
  18.     #[ORM\Column(typeTypes::DATE_IMMUTABLE)]
  19.     private ?\DateTimeImmutable $Date null;
  20.     #[ORM\Column]
  21.     private ?float $Price null;
  22.     #[ORM\ManyToOne(inversedBy'historyUsers')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private ?User $userId null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $label null;
  27.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  28.     private ?HousingCertificate $attestation null;
  29.     #[ORM\Column(length255)]
  30.     private ?string $content null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $data null;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getADD_CREDIT_PACK(): string
  38.     {
  39.         return HistoryUser::ADD_CREDIT_PACK;
  40.     }
  41.     public function getSUP_CREDIT_PACK(): string
  42.     {
  43.         return HistoryUser::SUP_CREDIT_PACK;
  44.     }
  45.     public function getCREATE_ATTESTATION_ADMIN(): string
  46.     {
  47.         return HistoryUser::CREATE_ATTESTATION_ADMIN;
  48.     }
  49.     public function getCREATE_ATTESTATION_ADMIN_BO(): string
  50.     {
  51.         return HistoryUser::CREATE_ATTESTATION_ADMIN_BO;
  52.     }
  53.     public function getCREATE_ATTESTATION(): string
  54.     {
  55.         return HistoryUser::CREATE_ATTESTATION;
  56.     }
  57.     public function getDate(): ?\DateTimeImmutable
  58.     {
  59.         return $this->Date;
  60.     }
  61.     public function setDate(\DateTimeImmutable $Date): static
  62.     {
  63.         $this->Date $Date;
  64.         return $this;
  65.     }
  66.     public function getPrice(): ?float
  67.     {
  68.         return $this->Price;
  69.     }
  70.     public function setPrice(float $Price): static
  71.     {
  72.         $this->Price $Price;
  73.         return $this;
  74.     }
  75.     public function getUserId(): ?User
  76.     {
  77.         return $this->userId;
  78.     }
  79.     public function setUserId(?User $userId): static
  80.     {
  81.         $this->userId $userId;
  82.         return $this;
  83.     }
  84.     public function getLabel(): ?string
  85.     {
  86.         return $this->label;
  87.     }
  88.     public function setLabel(string $label): static
  89.     {
  90.         $this->label $label;
  91.         return $this;
  92.     }
  93.     public function getAttestation(): ?HousingCertificate
  94.     {
  95.         return $this->attestation;
  96.     }
  97.     public function setAttestation(?HousingCertificate $attestation): static
  98.     {
  99.         $this->attestation $attestation;
  100.         return $this;
  101.     }
  102.     public function getContent(): ?string
  103.     {
  104.         return $this->content;
  105.     }
  106.     public function setContent(string $content): static
  107.     {
  108.         $this->content $content;
  109.         return $this;
  110.     }
  111.     public function getData(): ?string
  112.     {
  113.         return $this->data;
  114.     }
  115.     public function setData(?string $data): static
  116.     {
  117.         $this->data $data;
  118.         return $this;
  119.     }
  120. }