src/Entity/FicheControleEnCours.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FicheControleEnCoursRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassFicheControleEnCoursRepository::class)]
  8. class FicheControleEnCours
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'datetime'nullabletrue)]
  15.     private $date;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $semaine;
  18.     #[ORM\Column(type'datetime'nullabletrue)]
  19.     private $date_created;
  20.     #[ORM\OneToMany(targetEntityFicheControleEnCoursDefaut::class, mappedBy'fichecontrole')]
  21.     private $ficheControleEnCoursDefauts;
  22.     #[ORM\ManyToOne(targetEntityAtelier::class, inversedBy'ficheControleEnCours')]
  23.     private $atelier;
  24.     #[ORM\ManyToOne(targetEntityAtelierChaine::class, inversedBy'ficheControleEnCours')]
  25.     private $chaine;
  26.     public function __construct()
  27.     {
  28.         $this->ficheControleEnCoursDefauts = new ArrayCollection();
  29.     }
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getDate(): ?\DateTimeInterface
  35.     {
  36.         return $this->date;
  37.     }
  38.     public function setDate(?\DateTimeInterface $date): self
  39.     {
  40.         $this->date $date;
  41.         return $this;
  42.     }
  43.     public function getSemaine(): ?string
  44.     {
  45.         return $this->semaine;
  46.     }
  47.     public function setSemaine(?string $semaine): self
  48.     {
  49.         $this->semaine $semaine;
  50.         return $this;
  51.     }
  52.     public function getDateCreated(): ?\DateTimeInterface
  53.     {
  54.         return $this->date_created;
  55.     }
  56.     public function setDateCreated(?\DateTimeInterface $date_created): self
  57.     {
  58.         $this->date_created $date_created;
  59.         return $this;
  60.     }
  61.     /**
  62.      * @return Collection<int, FicheControleEnCoursDefaut>
  63.      */
  64.     public function getFicheControleEnCoursDefauts(): Collection
  65.     {
  66.         return $this->ficheControleEnCoursDefauts;
  67.     }
  68.     public function addFicheControleEnCoursDefaut(FicheControleEnCoursDefaut $ficheControleEnCoursDefaut): self
  69.     {
  70.         if (!$this->ficheControleEnCoursDefauts->contains($ficheControleEnCoursDefaut)) {
  71.             $this->ficheControleEnCoursDefauts[] = $ficheControleEnCoursDefaut;
  72.             $ficheControleEnCoursDefaut->setFichecontrole($this);
  73.         }
  74.         return $this;
  75.     }
  76.     public function removeFicheControleEnCoursDefaut(FicheControleEnCoursDefaut $ficheControleEnCoursDefaut): self
  77.     {
  78.         if ($this->ficheControleEnCoursDefauts->removeElement($ficheControleEnCoursDefaut)) {
  79.             // set the owning side to null (unless already changed)
  80.             if ($ficheControleEnCoursDefaut->getFichecontrole() === $this) {
  81.                 $ficheControleEnCoursDefaut->setFichecontrole(null);
  82.             }
  83.         }
  84.         return $this;
  85.     }
  86.     public function getAtelier(): ?Atelier
  87.     {
  88.         return $this->atelier;
  89.     }
  90.     public function setAtelier(?Atelier $atelier): self
  91.     {
  92.         $this->atelier $atelier;
  93.         return $this;
  94.     }
  95.     public function getChaine(): ?AtelierChaine
  96.     {
  97.         return $this->chaine;
  98.     }
  99.     public function setChaine(?AtelierChaine $chaine): self
  100.     {
  101.         $this->chaine $chaine;
  102.         return $this;
  103.     }
  104. }