<?php
namespace App\Entity;
use App\Repository\OrderCircuitRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=OrderCircuitRepository::class)
*/
class OrderCircuit
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Order::class, inversedBy="orderCircuits")
*/
private $book;
/**
* @ORM\ManyToOne(targetEntity=Circuit::class, inversedBy="orderCircuits")
*/
private $circuit;
/**
* @ORM\Column(type="datetime")
*/
private $start;
/**
* @ORM\Column(type="datetime")
*/
private $end;
public function getId(): ?int
{
return $this->id;
}
public function getBook(): ?Order
{
return $this->book;
}
public function setBook(?Order $book): self
{
$this->book = $book;
return $this;
}
public function getCircuit(): ?Circuit
{
return $this->circuit;
}
public function setCircuit(?Circuit $circuit): self
{
$this->circuit = $circuit;
return $this;
}
public function getStart(): ?\DateTimeInterface
{
return $this->start;
}
public function setStart(\DateTimeInterface $start): self
{
$this->start = $start;
return $this;
}
public function getEnd(): ?\DateTimeInterface
{
return $this->end;
}
public function setEnd(\DateTimeInterface $end): self
{
$this->end = $end;
return $this;
}
}