<?php
namespace App\Entity;
use App\Repository\LdossierContractRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: LdossierContractRepository::class)]
class LdossierContract
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'ldossierContracts')]
private ?Pdossier $dossier_id = null;
#[ORM\ManyToOne(inversedBy: 'ldossierContracts')]
private ?LContract $contract_id = null;
#[ORM\Column(nullable: true)]
private ?bool $active = true;
#[ORM\ManyToOne]
private ?Users $userCreated = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $created = null;
#[ORM\ManyToOne]
private ?Users $userReaffectation = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateReaffectation = null;
public function getId(): ?int
{
return $this->id;
}
public function getDossierId(): ?Pdossier
{
return $this->dossier_id;
}
public function setDossierId(?Pdossier $dossier_id): self
{
$this->dossier_id = $dossier_id;
return $this;
}
public function getContractId(): ?LContract
{
return $this->contract_id;
}
public function setContractId(?LContract $contract_id): self
{
$this->contract_id = $contract_id;
return $this;
}
public function isActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): static
{
$this->active = $active;
return $this;
}
public function getUserCreated(): ?Users
{
return $this->userCreated;
}
public function setUserCreated(?Users $userCreated): static
{
$this->userCreated = $userCreated;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(?\DateTimeInterface $created): static
{
$this->created = $created;
return $this;
}
public function getUserReaffectation(): ?Users
{
return $this->userReaffectation;
}
public function setUserReaffectation(?Users $userReaffectation): static
{
$this->userReaffectation = $userReaffectation;
return $this;
}
public function getDateReaffectation(): ?\DateTimeInterface
{
return $this->dateReaffectation;
}
public function setDateReaffectation(?\DateTimeInterface $dateReaffectation): static
{
$this->dateReaffectation = $dateReaffectation;
return $this;
}
}