<?php
namespace App\Entity;
use App\Repository\EmpruntsRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=EmpruntsRepository::class)
* @ORM\Table(name="rn_emprunts")
*/
class Emprunts
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $nom;
/**
* @ORM\Column(type="float")
*/
private $longitude;
/**
* @ORM\Column(type="float")
*/
private $latitude;
/**
* @ORM\ManyToOne(targetEntity=Routes::class, inversedBy="emprunts")
* @ORM\JoinColumn(nullable=false)
*/
private $routes;
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;
}
public function getLongitude(): ?float
{
return $this->longitude;
}
public function setLongitude(float $longitude): self
{
$this->longitude = $longitude;
return $this;
}
public function getLatitude(): ?float
{
return $this->latitude;
}
public function setLatitude(float $latitude): self
{
$this->latitude = $latitude;
return $this;
}
public function getRoutes(): ?Routes
{
return $this->routes;
}
public function setRoutes(?Routes $routes): self
{
$this->routes = $routes;
return $this;
}
}