<?php
namespace App\Entity;
use App\Entity\TimestampableTrait;
use App\Repository\CarburantRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\HttpFoundation\File\UploadedFile;
/**
* @ORM\Entity(repositoryClass=CarburantRepository::class)
*/
class Carburant
{
use TimestampableTrait;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Transporteur::class, inversedBy="carburants")
*/
private $transporteur;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $number;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $code;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $date;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $datePayment;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $situation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $serviceStation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $type;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $km;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $indexHoraire;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $quantity;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $price;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $montantTht;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $montantTtc;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tva;
/**
* @ORM\ManyToOne(targetEntity=Vehicle::class, inversedBy="carburants")
*/
private $vehicle;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ticket;
/**
* @Assert\Image(maxSize="2M")
*/
private $file;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ticketOriginalName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ticketSize;
public function getId(): ?int
{
return $this->id;
}
public function getTransporteur(): ?Transporteur
{
return $this->transporteur;
}
public function setTransporteur(?Transporteur $transporteur): self
{
$this->transporteur = $transporteur;
return $this;
}
public function getNumber(): ?string
{
return $this->number;
}
public function setNumber(?string $number): self
{
$this->number = $number;
return $this;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(?string $code): self
{
$this->code = $code;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getDatePayment(): ?\DateTimeInterface
{
return $this->datePayment;
}
public function setDatePayment(?\DateTimeInterface $datePayment): self
{
$this->datePayment = $datePayment;
return $this;
}
public function getSituation(): ?string
{
return $this->situation;
}
public function setSituation(?string $situation): self
{
$this->situation = $situation;
return $this;
}
public function getServiceStation(): ?string
{
return $this->serviceStation;
}
public function setServiceStation(?string $serviceStation): self
{
$this->serviceStation = $serviceStation;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
public function getKm(): ?string
{
return $this->km;
}
public function setKm(?string $km): self
{
$this->km = $km;
return $this;
}
public function getIndexHoraire(): ?string
{
return $this->indexHoraire;
}
public function setIndexHoraire(?string $indexHoraire): self
{
$this->indexHoraire = $indexHoraire;
return $this;
}
public function getQuantity(): ?string
{
return $this->quantity;
}
public function setQuantity(?string $quantity): self
{
$this->quantity = $quantity;
return $this;
}
public function getPrice(): ?string
{
return $this->price;
}
public function setPrice(?string $price): self
{
$this->price = $price;
return $this;
}
public function getMontantTht(): ?string
{
return $this->montantTht;
}
public function setMontantTht(?string $montantTht): self
{
$this->montantTht = $montantTht;
return $this;
}
public function getMontantTtc(): ?string
{
return $this->montantTtc;
}
public function setMontantTtc(?string $montantTtc): self
{
$this->montantTtc = $montantTtc;
return $this;
}
public function getTva(): ?string
{
return $this->tva;
}
public function setTva(?string $tva): self
{
$this->tva = $tva;
return $this;
}
public function getVehicle(): ?Vehicle
{
return $this->vehicle;
}
public function setVehicle(?Vehicle $vehicle): self
{
$this->vehicle = $vehicle;
return $this;
}
public function getTicket(): ?string
{
return $this->ticket;
}
public function setTicket(?string $ticket): self
{
$this->ticket = $ticket;
return $this;
}
public function getFile()
{
return $this->file;
}
public function setFile(UploadedFile $file)
{
$this->file = $file;
return $this;
}
public function getTicketOriginalName(): ?string
{
return $this->ticketOriginalName;
}
public function setTicketOriginalName(?string $ticketOriginalName): self
{
$this->ticketOriginalName = $ticketOriginalName;
return $this;
}
public function getTicketSize(): ?string
{
return $this->ticketSize;
}
public function setTicketSize(?string $ticketSize): self
{
$this->ticketSize = $ticketSize;
return $this;
}
}