src/Entity/SystemeClient.php line 11
<?phpnamespace App\Entity;use App\Repository\SystemeClientRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SystemeClientRepository::class)]class SystemeClient{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $nom = null;#[ORM\OneToMany(mappedBy: 'systemeClient', targetEntity: User::class)]private Collection $users;#[ORM\OneToMany(mappedBy: 'systemeClient', targetEntity: Remorque::class)]private Collection $remorques;#[ORM\OneToMany(mappedBy: 'systemeClient', targetEntity: Camion::class)]private Collection $camions;#[ORM\OneToMany(mappedBy: 'systemeClient', targetEntity: Maintenance::class)]private Collection $maintenances;#[ORM\OneToMany(mappedBy: 'systemeClient', targetEntity: TourneeTheorique::class)]private Collection $tourneeTheoriques;#[ORM\OneToMany(mappedBy: 'systemeClient', targetEntity: Client::class)]private Collection $clients;#[ORM\OneToMany(mappedBy: 'systemeClient', targetEntity: Pneu::class)]private Collection $pneus;#[ORM\OneToMany(mappedBy: 'SystemeClient', targetEntity: MaintenanceType::class)]private Collection $maintenanceTypes;public function __construct(){$this->users = new ArrayCollection();$this->remorques = new ArrayCollection();$this->camions = new ArrayCollection();$this->maintenances = new ArrayCollection();$this->tourneeTheoriques = new ArrayCollection();$this->clients = new ArrayCollection();$this->maintenanceTypes = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getNom(): ?string{return $this->nom;}public function setNom(string $nom): self{$this->nom = $nom;return $this;}/*** @return Collection<int, User>*/public function getUsers(): Collection{return $this->users;}public function addUser(User $user): self{if (!$this->users->contains($user)) {$this->users->add($user);$user->setSystemeClient($this);}return $this;}public function removeUser(User $user): self{if ($this->users->removeElement($user)) {// set the owning side to null (unless already changed)if ($user->getSystemeClient() === $this) {$user->setSystemeClient(null);}}return $this;}/*** @return Collection<int, Remorque>*/public function getRemorques(): Collection{return $this->remorques;}public function addRemorque(Remorque $remorque): self{if (!$this->remorques->contains($remorque)) {$this->remorques->add($remorque);$remorque->setSystemeClient($this);}return $this;}public function removeRemorque(Remorque $remorque): self{if ($this->remorques->removeElement($remorque)) {// set the owning side to null (unless already changed)if ($remorque->getSystemeClient() === $this) {$remorque->setSystemeClient(null);}}return $this;}/*** @return Collection<int, Camion>*/public function getCamions(): Collection{return $this->camions;}public function addCamion(Camion $camion): self{if (!$this->camions->contains($camion)) {$this->camions->add($camion);$camion->setSystemeClient($this);}return $this;}public function removeCamion(Camion $camion): self{if ($this->camions->removeElement($camion)) {// set the owning side to null (unless already changed)if ($camion->getSystemeClient() === $this) {$camion->setSystemeClient(null);}}return $this;}/*** @return Collection<int, Maintenance>*/public function getMaintenances(): Collection{return $this->maintenances;}public function addMaintenance(Maintenance $maintenance): self{if (!$this->maintenances->contains($maintenance)) {$this->maintenances->add($maintenance);$maintenance->setSystemeClient($this);}return $this;}public function removeMaintenance(Maintenance $maintenance): self{if ($this->maintenances->removeElement($maintenance)) {// set the owning side to null (unless already changed)if ($maintenance->getSystemeClient() === $this) {$maintenance->setSystemeClient(null);}}return $this;}/*** @return Collection<int, TourneeTheorique>*/public function getTourneeTheoriques(): Collection{return $this->tourneeTheoriques;}public function addTourneeTheorique(TourneeTheorique $tourneeTheorique): self{if (!$this->tourneeTheoriques->contains($tourneeTheorique)) {$this->tourneeTheoriques->add($tourneeTheorique);$tourneeTheorique->setSystemeClient($this);}return $this;}public function removeTourneeTheorique(TourneeTheorique $tourneeTheorique): self{if ($this->tourneeTheoriques->removeElement($tourneeTheorique)) {// set the owning side to null (unless already changed)if ($tourneeTheorique->getSystemeClient() === $this) {$tourneeTheorique->setSystemeClient(null);}}return $this;}public function __toString(){return $this->getNom();}/*** @return Collection<int, Client>*/public function getClients(): Collection{return $this->clients;}public function addClient(Client $client): self{if (!$this->clients->contains($client)) {$this->clients->add($client);$client->setSystemeClient($this);}return $this;}public function removeClient(Client $client): self{if ($this->clients->removeElement($client)) {// set the owning side to null (unless already changed)if ($client->getSystemeClient() === $this) {$client->setSystemeClient(null);}}return $this;}/*** @return Collection<int, Pneu>*/public function getPneus(): Collection{return $this->pneus;}public function addPneu(Pneu $pneu): static{if (!$this->pneus->contains($pneu)) {$this->pneus->add($pneu);$pneu->setSystemeClient($this);}return $this;}public function removePneu(Pneu $pneu): static{if ($this->pneus->removeElement($pneu)) {// set the owning side to null (unless already changed)if ($pneu->getSystemeClient() === $this) {$pneu->setSystemeClient(null);}}return $this;}/*** @return Collection<int, MaintenanceType>*/public function getMaintenanceTypes(): Collection{return $this->maintenanceTypes;}public function addMaintenanceType(MaintenanceType $maintenanceType): static{if (!$this->maintenanceTypes->contains($maintenanceType)) {$this->maintenanceTypes->add($maintenanceType);$maintenanceType->setSystemeClient($this);}return $this;}public function removeMaintenanceType(MaintenanceType $maintenanceType): static{if ($this->maintenanceTypes->removeElement($maintenanceType)) {// set the owning side to null (unless already changed)if ($maintenanceType->getSystemeClient() === $this) {$maintenanceType->setSystemeClient(null);}}return $this;}}