src/Entity/Divers.php line 11
<?phpnamespace App\Entity;use App\Repository\DiversRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DiversRepository::class)]class Divers{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $nom = null;#[ORM\OneToMany(mappedBy: 'divers', targetEntity: Facture::class)]private Collection $factures;#[ORM\ManyToOne]private ?SystemeClient $systemeClient = null;public function __construct(){$this->factures = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getNom(): ?string{return $this->nom;}public function setNom(string $nom): static{$this->nom = $nom;return $this;}/*** @return Collection<int, Facture>*/public function getFactures(): Collection{return $this->factures;}public function addFacture(Facture $facture): static{if (!$this->factures->contains($facture)) {$this->factures->add($facture);$facture->setDivers($this);}return $this;}public function removeFacture(Facture $facture): static{if ($this->factures->removeElement($facture)) {// set the owning side to null (unless already changed)if ($facture->getDivers() === $this) {$facture->setDivers(null);}}return $this;}public function __toString(){return $this->getNom();}public function getSystemeClient(): ?SystemeClient{return $this->systemeClient;}public function setSystemeClient(?SystemeClient $systemeClient): static{$this->systemeClient = $systemeClient;return $this;}}