src/Entity/HistoryUser.php line 10
<?phpnamespace App\Entity;use App\Repository\HistoryUserRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: HistoryUserRepository::class)]class HistoryUser{CONST ADD_CREDIT_PACK = "pack_attestation_add";CONST SUP_CREDIT_PACK = "pack_attestation_sup";CONST CREATE_ATTESTATION_ADMIN = "admin_attestation_create";CONST CREATE_ATTESTATION_ADMIN_BO = "admin_bo_attestation_create";CONST CREATE_ATTESTATION = "attestation_create";#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::DATE_IMMUTABLE)]private ?\DateTimeImmutable $Date = null;#[ORM\Column]private ?float $Price = null;#[ORM\ManyToOne(inversedBy: 'historyUsers')]#[ORM\JoinColumn(nullable: false)]private ?User $userId = null;#[ORM\Column(length: 255)]private ?string $label = null;#[ORM\OneToOne(cascade: ['persist', 'remove'])]private ?HousingCertificate $attestation = null;#[ORM\Column(length: 255)]private ?string $content = null;#[ORM\Column(length: 255, nullable: true)]private ?string $data = null;public function getId(): ?int{return $this->id;}public function getADD_CREDIT_PACK(): string{return HistoryUser::ADD_CREDIT_PACK;}public function getSUP_CREDIT_PACK(): string{return HistoryUser::SUP_CREDIT_PACK;}public function getCREATE_ATTESTATION_ADMIN(): string{return HistoryUser::CREATE_ATTESTATION_ADMIN;}public function getCREATE_ATTESTATION_ADMIN_BO(): string{return HistoryUser::CREATE_ATTESTATION_ADMIN_BO;}public function getCREATE_ATTESTATION(): string{return HistoryUser::CREATE_ATTESTATION;}public function getDate(): ?\DateTimeImmutable{return $this->Date;}public function setDate(\DateTimeImmutable $Date): static{$this->Date = $Date;return $this;}public function getPrice(): ?float{return $this->Price;}public function setPrice(float $Price): static{$this->Price = $Price;return $this;}public function getUserId(): ?User{return $this->userId;}public function setUserId(?User $userId): static{$this->userId = $userId;return $this;}public function getLabel(): ?string{return $this->label;}public function setLabel(string $label): static{$this->label = $label;return $this;}public function getAttestation(): ?HousingCertificate{return $this->attestation;}public function setAttestation(?HousingCertificate $attestation): static{$this->attestation = $attestation;return $this;}public function getContent(): ?string{return $this->content;}public function setContent(string $content): static{$this->content = $content;return $this;}public function getData(): ?string{return $this->data;}public function setData(?string $data): static{$this->data = $data;return $this;}}