<?phpnamespace App\Entity;use App\Repository\FicheControleEnCoursRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: FicheControleEnCoursRepository::class)]class FicheControleEnCours{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'datetime', nullable: true)] private $date; #[ORM\Column(type: 'string', length: 255, nullable: true)] private $semaine; #[ORM\Column(type: 'datetime', nullable: true)] private $date_created; #[ORM\OneToMany(targetEntity: FicheControleEnCoursDefaut::class, mappedBy: 'fichecontrole')] private $ficheControleEnCoursDefauts; #[ORM\ManyToOne(targetEntity: Atelier::class, inversedBy: 'ficheControleEnCours')] private $atelier; #[ORM\ManyToOne(targetEntity: AtelierChaine::class, inversedBy: 'ficheControleEnCours')] private $chaine; public function __construct() { $this->ficheControleEnCoursDefauts = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(?\DateTimeInterface $date): self { $this->date = $date; return $this; } public function getSemaine(): ?string { return $this->semaine; } public function setSemaine(?string $semaine): self { $this->semaine = $semaine; return $this; } public function getDateCreated(): ?\DateTimeInterface { return $this->date_created; } public function setDateCreated(?\DateTimeInterface $date_created): self { $this->date_created = $date_created; return $this; } /** * @return Collection<int, FicheControleEnCoursDefaut> */ public function getFicheControleEnCoursDefauts(): Collection { return $this->ficheControleEnCoursDefauts; } public function addFicheControleEnCoursDefaut(FicheControleEnCoursDefaut $ficheControleEnCoursDefaut): self { if (!$this->ficheControleEnCoursDefauts->contains($ficheControleEnCoursDefaut)) { $this->ficheControleEnCoursDefauts[] = $ficheControleEnCoursDefaut; $ficheControleEnCoursDefaut->setFichecontrole($this); } return $this; } public function removeFicheControleEnCoursDefaut(FicheControleEnCoursDefaut $ficheControleEnCoursDefaut): self { if ($this->ficheControleEnCoursDefauts->removeElement($ficheControleEnCoursDefaut)) { // set the owning side to null (unless already changed) if ($ficheControleEnCoursDefaut->getFichecontrole() === $this) { $ficheControleEnCoursDefaut->setFichecontrole(null); } } return $this; } public function getAtelier(): ?Atelier { return $this->atelier; } public function setAtelier(?Atelier $atelier): self { $this->atelier = $atelier; return $this; } public function getChaine(): ?AtelierChaine { return $this->chaine; } public function setChaine(?AtelierChaine $chaine): self { $this->chaine = $chaine; return $this; }}