src/Entity/DefautParFamille.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DefautParFamilleRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassDefautParFamilleRepository::class)]
  6. class DefautParFamille
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityCategorieFamille::class, inversedBy'defautParFamilles')]
  13.     private $categoriefamille;
  14.     #[ORM\ManyToOne(targetEntityDefaut::class, inversedBy'defautParFamilles')]
  15.     private $defaut;
  16.     #[ORM\ManyToOne(targetEntityCriticite::class, inversedBy'defautParFamilles')]
  17.     private $criticite;
  18.     #[ORM\Column(type'boolean'nullabletrue)]
  19.     private ?bool $saisie false;
  20.     #[ORM\Column(type'boolean'nullabletrue)]
  21.     private ?bool $perele false;
  22.     #[ORM\Column(type'boolean'nullabletrue)]
  23.     private ?bool $soustraitant false;
  24.     #[ORM\Column(type'boolean'nullabletrue)]
  25.     private ?bool $cotraitant false;
  26.     #[ORM\Column(type'boolean'nullabletrue)]
  27.     private ?bool $preserie false;
  28.     #[ORM\Column(type'boolean'nullabletrue)]
  29.     private ?bool $serie false;
  30.     #[ORM\Column(type'boolean'nullabletrue)]
  31.     private ?bool $critique false;
  32.     #[ORM\Column(type'boolean'nullabletrue)]
  33.     private ?bool $majeur false;
  34.     #[ORM\Column(type'boolean'nullabletrue)]
  35.     private ?bool $mineur false;
  36.     #[ORM\Column(type'boolean'nullabletrue)]
  37.     private ?bool $actif true;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getCategoriefamille(): ?CategorieFamille
  43.     {
  44.         return $this->categoriefamille;
  45.     }
  46.     public function setCategoriefamille(?CategorieFamille $categoriefamille): self
  47.     {
  48.         $this->categoriefamille $categoriefamille;
  49.         return $this;
  50.     }
  51.     public function getDefaut(): ?Defaut
  52.     {
  53.         return $this->defaut;
  54.     }
  55.     public function setDefaut(?Defaut $defaut): self
  56.     {
  57.         $this->defaut $defaut;
  58.         return $this;
  59.     }
  60.     public function getCriticite(): ?Criticite
  61.     {
  62.         return $this->criticite;
  63.     }
  64.     public function setCriticite(?Criticite $criticite): self
  65.     {
  66.         $this->criticite $criticite;
  67.         return $this;
  68.     }
  69.     public function getSaisie(): ?bool
  70.     {
  71.         return $this->saisie;
  72.     }
  73.     public function setSaisie(?bool $saisie): self
  74.     {
  75.         $this->saisie $saisie;
  76.         return $this;
  77.     }
  78.     public function getPerele(): ?bool
  79.     {
  80.         return $this->perele;
  81.     }
  82.     public function setPerele(?bool $perele): self
  83.     {
  84.         $this->perele $perele;
  85.         return $this;
  86.     }
  87.     public function getSoustraitant(): ?bool
  88.     {
  89.         return $this->soustraitant;
  90.     }
  91.     public function setSoustraitant(?bool $soustraitant): self
  92.     {
  93.         $this->soustraitant $soustraitant;
  94.         return $this;
  95.     }
  96.     public function getCotraitant(): ?bool
  97.     {
  98.         return $this->cotraitant;
  99.     }
  100.     public function setCotraitant(?bool $cotraitant): self
  101.     {
  102.         $this->cotraitant $cotraitant;
  103.         return $this;
  104.     }
  105.     public function getPreserie(): ?bool
  106.     {
  107.         return $this->preserie;
  108.     }
  109.     public function setPreserie(?bool $preserie): self
  110.     {
  111.         $this->preserie $preserie;
  112.         return $this;
  113.     }
  114.     public function getSerie(): ?bool
  115.     {
  116.         return $this->serie;
  117.     }
  118.     public function setSerie(?bool $serie): self
  119.     {
  120.         $this->serie $serie;
  121.         return $this;
  122.     }
  123.     public function getCritique(): ?bool
  124.     {
  125.         return $this->critique;
  126.     }
  127.     public function setCritique(?bool $critique): self
  128.     {
  129.         $this->critique $critique;
  130.         return $this;
  131.     }
  132.     public function getMajeur(): ?bool
  133.     {
  134.         return $this->majeur;
  135.     }
  136.     public function setMajeur(?bool $majeur): self
  137.     {
  138.         $this->majeur $majeur;
  139.         return $this;
  140.     }
  141.     public function getMineur(): ?bool
  142.     {
  143.         return $this->mineur;
  144.     }
  145.     public function setMineur(?bool $mineur): self
  146.     {
  147.         $this->mineur $mineur;
  148.         return $this;
  149.     }
  150.     public function getActif(): ?bool
  151.     {
  152.         return $this->actif;
  153.     }
  154.     public function setActif(?bool $actif): self
  155.     {
  156.         $this->actif $actif;
  157.         return $this;
  158.     }
  159. }