<?phpnamespace App\Entity;use App\Repository\TypeDeviceRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=TypeDeviceRepository::class) */class TypeDevice{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $libelle; /** * @ORM\Column(type="integer") */ private $idFournisseur; /** * @ORM\OneToMany(targetEntity=Modele::class, mappedBy="typeDevice") */ private $modeles; /** * @ORM\Column(type="string", length=255) */ private $libelleFournisseur; /** * @ORM\Column(type="integer") */ private $typeParametres; /** * @ORM\Column(type="string", length=16) */ private $downlink = "0000000000000000"; /** * @ORM\Column(type="string", length=255) */ private $licence; /** * @ORM\Column(type="integer") */ private $cout; /** * @ORM\Column(type="string", length=255) */ private $fonction; /** * @ORM\Column(type="integer") */ private $garantie; /** * @ORM\Column(type="integer") */ private $dureeVie; /** * @ORM\ManyToMany(targetEntity=Reseau::class, inversedBy="typeDevices") */ private $reseaux; /** * @ORM\Column(type="string", length=255) */ private $idTypeSigfox; /** * @ORM\Column(type="string", length=255) */ private $productKey; public function __construct() { $this->modeles = new ArrayCollection(); $this->reseaux = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getLibelle(): ?string { return $this->libelle; } public function setLibelle(string $libelle): self { $this->libelle = $libelle; return $this; } public function getIdFournisseur(): ?int { return $this->idFournisseur; } public function setIdFournisseur(int $idFournisseur): self { $this->idFournisseur = $idFournisseur; return $this; } /** * @return Collection|Modele[] */ public function getModeles(): Collection { return $this->modeles; } public function addModele(Modele $modele): self { if (!$this->modeles->contains($modele)) { $this->modeles[] = $modele; $modele->setTypeDevice($this); } return $this; } public function removeModele(Modele $modele): self { if ($this->modeles->contains($modele)) { $this->modeles->removeElement($modele); // set the owning side to null (unless already changed) if ($modele->getTypeDevice() === $this) { $modele->setTypeDevice(null); } } return $this; } public function getLibelleFournisseur(): ?string { return $this->libelleFournisseur; } public function setLibelleFournisseur(string $libelleFournisseur): self { $this->libelleFournisseur = $libelleFournisseur; return $this; } public function getTypeParametres(): ?int { return $this->typeParametres; } public function setTypeParametres(int $typeParametres): self { $this->typeParametres = $typeParametres; return $this; } public function getDownlink(): ?string { return $this->downlink; } public function setDownlink(string $downlink): self { $this->downlink = $downlink; return $this; } public function getCout(): ?int { return $this->cout; } public function setCout(int $cout): self { $this->cout = $cout; return $this; } public function getFonction(): ?string { return $this->fonction; } public function setFonction(string $fonction): self { $this->fonction = $fonction; return $this; } public function getGarantie(): ?int { return $this->garantie; } public function setGarantie(int $garantie): self { $this->garantie = $garantie; return $this; } public function getDureeVie(): ?int { return $this->dureeVie; } public function setDureeVie(int $dureeVie): self { $this->dureeVie = $dureeVie; return $this; } /** * @return Collection|Reseau[] */ public function getReseaux(): Collection { return $this->reseaux; } public function addReseaux(Reseau $reseaux): self { if (!$this->reseaux->contains($reseaux)) { $this->reseaux[] = $reseaux; } return $this; } public function removeReseaux(Reseau $reseaux): self { if ($this->reseaux->contains($reseaux)) { $this->reseaux->removeElement($reseaux); } return $this; } public function __toString() { return $this->id; } public function getIdTypeSigfox(): ?string { return $this->idTypeSigfox; } public function setIdTypeSigfox(string $idTypeSigfox): self { $this->idTypeSigfox = $idTypeSigfox; return $this; } public function getProductKey(): ?string { return $this->productKey; } public function setProductKey(string $productKey): self { $this->productKey = $productKey; return $this; } public function getLicence(): ?string { return $this->licence; } public function setLicence(string $licence): self { $this->licence = $licence; return $this; }}