src/Entity/Emprunts.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EmpruntsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=EmpruntsRepository::class)
  7.  * @ORM\Table(name="rn_emprunts")
  8.  */
  9. class Emprunts
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $nom;
  21.     /**
  22.      * @ORM\Column(type="float")
  23.      */
  24.     private $longitude;
  25.     /**
  26.      * @ORM\Column(type="float")
  27.      */
  28.     private $latitude;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=Routes::class, inversedBy="emprunts")
  31.      * @ORM\JoinColumn(nullable=false)
  32.      */
  33.     private $routes;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getNom(): ?string
  39.     {
  40.         return $this->nom;
  41.     }
  42.     public function setNom(string $nom): self
  43.     {
  44.         $this->nom $nom;
  45.         return $this;
  46.     }
  47.     public function getLongitude(): ?float
  48.     {
  49.         return $this->longitude;
  50.     }
  51.     public function setLongitude(float $longitude): self
  52.     {
  53.         $this->longitude $longitude;
  54.         return $this;
  55.     }
  56.     public function getLatitude(): ?float
  57.     {
  58.         return $this->latitude;
  59.     }
  60.     public function setLatitude(float $latitude): self
  61.     {
  62.         $this->latitude $latitude;
  63.         return $this;
  64.     }
  65.     public function getRoutes(): ?Routes
  66.     {
  67.         return $this->routes;
  68.     }
  69.     public function setRoutes(?Routes $routes): self
  70.     {
  71.         $this->routes $routes;
  72.         return $this;
  73.     }
  74. }