<?php
namespace App\Entity;
use App\Repository\DefautParFamilleRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DefautParFamilleRepository::class)]
class DefautParFamille
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: CategorieFamille::class, inversedBy: 'defautParFamilles')]
private $categoriefamille;
#[ORM\ManyToOne(targetEntity: Defaut::class, inversedBy: 'defautParFamilles')]
private $defaut;
#[ORM\ManyToOne(targetEntity: Criticite::class, inversedBy: 'defautParFamilles')]
private $criticite;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $saisie = false;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $perele = false;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $soustraitant = false;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $cotraitant = false;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $preserie = false;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $serie = false;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $critique = false;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $majeur = false;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $mineur = false;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $actif = true;
public function getId(): ?int
{
return $this->id;
}
public function getCategoriefamille(): ?CategorieFamille
{
return $this->categoriefamille;
}
public function setCategoriefamille(?CategorieFamille $categoriefamille): self
{
$this->categoriefamille = $categoriefamille;
return $this;
}
public function getDefaut(): ?Defaut
{
return $this->defaut;
}
public function setDefaut(?Defaut $defaut): self
{
$this->defaut = $defaut;
return $this;
}
public function getCriticite(): ?Criticite
{
return $this->criticite;
}
public function setCriticite(?Criticite $criticite): self
{
$this->criticite = $criticite;
return $this;
}
public function getSaisie(): ?bool
{
return $this->saisie;
}
public function setSaisie(?bool $saisie): self
{
$this->saisie = $saisie;
return $this;
}
public function getPerele(): ?bool
{
return $this->perele;
}
public function setPerele(?bool $perele): self
{
$this->perele = $perele;
return $this;
}
public function getSoustraitant(): ?bool
{
return $this->soustraitant;
}
public function setSoustraitant(?bool $soustraitant): self
{
$this->soustraitant = $soustraitant;
return $this;
}
public function getCotraitant(): ?bool
{
return $this->cotraitant;
}
public function setCotraitant(?bool $cotraitant): self
{
$this->cotraitant = $cotraitant;
return $this;
}
public function getPreserie(): ?bool
{
return $this->preserie;
}
public function setPreserie(?bool $preserie): self
{
$this->preserie = $preserie;
return $this;
}
public function getSerie(): ?bool
{
return $this->serie;
}
public function setSerie(?bool $serie): self
{
$this->serie = $serie;
return $this;
}
public function getCritique(): ?bool
{
return $this->critique;
}
public function setCritique(?bool $critique): self
{
$this->critique = $critique;
return $this;
}
public function getMajeur(): ?bool
{
return $this->majeur;
}
public function setMajeur(?bool $majeur): self
{
$this->majeur = $majeur;
return $this;
}
public function getMineur(): ?bool
{
return $this->mineur;
}
public function setMineur(?bool $mineur): self
{
$this->mineur = $mineur;
return $this;
}
public function getActif(): ?bool
{
return $this->actif;
}
public function setActif(?bool $actif): self
{
$this->actif = $actif;
return $this;
}
}