src/Entity/LdossierContract.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LdossierContractRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassLdossierContractRepository::class)]
  9. class LdossierContract
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'ldossierContracts')]
  16.     private ?Pdossier $dossier_id null;
  17.     #[ORM\ManyToOne(inversedBy'ldossierContracts')]
  18.     private ?LContract $contract_id null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?bool $active true;
  21.     #[ORM\ManyToOne]
  22.     private ?Users $userCreated null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $created null;
  25.     #[ORM\ManyToOne]
  26.     private ?Users $userReaffectation null;
  27.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $dateReaffectation null;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getDossierId(): ?Pdossier
  34.     {
  35.         return $this->dossier_id;
  36.     }
  37.     public function setDossierId(?Pdossier $dossier_id): self
  38.     {
  39.         $this->dossier_id $dossier_id;
  40.         return $this;
  41.     }
  42.     public function getContractId(): ?LContract
  43.     {
  44.         return $this->contract_id;
  45.     }
  46.     public function setContractId(?LContract $contract_id): self
  47.     {
  48.         $this->contract_id $contract_id;
  49.         return $this;
  50.     }
  51.     public function isActive(): ?bool
  52.     {
  53.         return $this->active;
  54.     }
  55.     public function setActive(?bool $active): static
  56.     {
  57.         $this->active $active;
  58.         return $this;
  59.     }
  60.     public function getUserCreated(): ?Users
  61.     {
  62.         return $this->userCreated;
  63.     }
  64.     public function setUserCreated(?Users $userCreated): static
  65.     {
  66.         $this->userCreated $userCreated;
  67.         return $this;
  68.     }
  69.     public function getCreated(): ?\DateTimeInterface
  70.     {
  71.         return $this->created;
  72.     }
  73.     public function setCreated(?\DateTimeInterface $created): static
  74.     {
  75.         $this->created $created;
  76.         return $this;
  77.     }
  78.     public function getUserReaffectation(): ?Users
  79.     {
  80.         return $this->userReaffectation;
  81.     }
  82.     public function setUserReaffectation(?Users $userReaffectation): static
  83.     {
  84.         $this->userReaffectation $userReaffectation;
  85.         return $this;
  86.     }
  87.     public function getDateReaffectation(): ?\DateTimeInterface
  88.     {
  89.         return $this->dateReaffectation;
  90.     }
  91.     public function setDateReaffectation(?\DateTimeInterface $dateReaffectation): static
  92.     {
  93.         $this->dateReaffectation $dateReaffectation;
  94.         return $this;
  95.     }
  96.  
  97. }