<?php
namespace App\Entity;
use App\Repository\ReservationcircuitRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ReservationcircuitRepository::class)
*/
class Reservationcircuit
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Circuit::class, inversedBy="reservationcircuits")
* @ORM\JoinColumn(nullable=false)
*/
private $circuit;
/**
* @ORM\ManyToOne(targetEntity=Coordonnescircuit::class, inversedBy="reservationcircuits")
* @ORM\JoinColumn(nullable=false)
*/
private $coordonnee;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $total;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $typepayment;
public function getId(): ?int
{
return $this->id;
}
public function getCircuit(): ?Circuit
{
return $this->circuit;
}
public function setCircuit(?Circuit $circuit): self
{
$this->circuit = $circuit;
return $this;
}
public function getCoordonnee(): ?Coordonnescircuit
{
return $this->coordonnee;
}
public function setCoordonnee(?Coordonnescircuit $coordonnee): self
{
$this->coordonnee = $coordonnee;
return $this;
}
public function getTotal(): ?float
{
return $this->total;
}
public function setTotal(?float $total): self
{
$this->total = $total;
return $this;
}
public function getTypepayment(): ?string
{
return $this->typepayment;
}
public function setTypepayment(?string $typepayment): self
{
$this->typepayment = $typepayment;
return $this;
}
}