<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use JMS\Serializer\Annotation as Serializer;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Table(name="walkinn_dossier_type") * @ORM\Entity(repositoryClass="App\Repository\DossierTypeRepository") * @Serializer\ExclusionPolicy("all") */class DossierType{ use \App\Traits\Timestampable; use \App\Traits\Blameable; /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $libelle; /** * @ORM\Column(type="boolean", nullable=true) */ private $actif = 1; /** * @ORM\OneToMany(targetEntity="App\Entity\Dossier", mappedBy="dossierType") */ private $dossiers; /** * @ORM\Column(type="boolean", nullable=true) */ private $isTauxDeRemplissage; public function __construct() { $this->dossiers = new ArrayCollection(); } public function __toString() { return $this->libelle; } public function getId(): ?int { return $this->id; } public function getLibelle(): ?string { return $this->libelle; } public function setLibelle(?string $libelle): self { $this->libelle = $libelle; return $this; } public function getActif(): ?bool { return $this->actif; } public function setActif(?bool $actif): self { $this->actif = $actif; return $this; } /** * @return Collection|Dossier[] */ public function getDossiers(): Collection { return $this->dossiers; } public function addDossier(Dossier $dossier): self { if (!$this->dossiers->contains($dossier)) { $this->dossiers[] = $dossier; $dossier->setDossierType($this); } return $this; } public function removeDossier(Dossier $dossier): self { if ($this->dossiers->contains($dossier)) { $this->dossiers->removeElement($dossier); // set the owning side to null (unless already changed) if ($dossier->getDossierType() === $this) { $dossier->setDossierType(null); } } return $this; } public function getIsTauxDeRemplissage(): ?bool { return $this->isTauxDeRemplissage; } public function setIsTauxDeRemplissage(?bool $isTauxDeRemplissage): self { $this->isTauxDeRemplissage = $isTauxDeRemplissage; return $this; }}