<?php
namespace App\Entity;
use App\Entity\TimestampableTrait;
use App\Repository\VehicleRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=VehicleRepository::class)
*/
class Vehicle
{
use TimestampableTrait;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Transporteur::class, inversedBy="vehicles")
* @ORM\JoinColumn(nullable=false)
*/
private $transporteur;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $registrationNumber;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $registrationDate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $co2Emmissions;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $commercialName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $environmentalClass;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $latestKm;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $color;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $acquisition;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $parkNumber;
/**
* @ORM\ManyToOne(targetEntity=Park::class, inversedBy="vehicles")
* @ORM\JoinColumn(nullable=true)
*/
private $park;
/**
* @ORM\ManyToOne(targetEntity=Brand::class, inversedBy="vehicles")
* @ORM\JoinColumn(nullable=true)
*/
private $brand;
/**
* @ORM\ManyToOne(targetEntity=VehicleType::class, inversedBy="vehicles")
* @ORM\JoinColumn(nullable=true)
*/
private $type;
/**
* @ORM\ManyToOne(targetEntity=VehicleGroup::class, inversedBy="vehicles")
* @ORM\JoinColumn(nullable=true)
*/
private $vehicleGroup;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $image;
/**
* @Assert\Image(maxSize="2M")
*/
private $file;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgTvv;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgCnit;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgVin;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgPtac;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgMaximumCharge;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgPtra;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgVehicleMass;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgPoidsVide;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $cgCertificateDate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgVehicleCategory;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgVp;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgBodyCode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgBodyDesignation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgTan;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgDisplacement;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgPowerMax;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgEnergy;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgNap;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgVitesseMax;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cgPlaceNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sgStandingPlaceNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sgNiveauSonor;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sgEngineSpeed;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tcLength;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tcWidth;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tcHeight;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tcTankCapacity;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tcUrbanConsumption;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tcExtraUrbanConsumption;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tcAutorouteConsumption;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovGps;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovMusic;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovClimatisation;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovPanoramicRoof;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovToilet;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovTv;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovLeatherSeat;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovReclinerSeat;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovArmrest;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovSeatSelf;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovDesk;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovCigaretteLighter;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovPlug220v;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovPlugUsb;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovWaterBottle;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovFrigo;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovCoffeeMachine;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovKichenette;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovBandingTrailer;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovBoxMotorBanding;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ovMaxiBunkerBanding;
/**
* @ORM\OneToMany(targetEntity=Acquisition::class, mappedBy="vehicle", cascade={"remove"})
*/
private $acquisitions;
/**
* @ORM\OneToMany(targetEntity=Assurance::class, mappedBy="vehicle", cascade={"remove"})
*/
private $assurances;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $code;
/**
* @ORM\Column(type="boolean")
*/
private $archive = false;
/**
* @ORM\OneToMany(targetEntity=ControleTechnique::class, mappedBy="vehicle", cascade={"remove"})
*/
private $controleTechniques;
/**
* @ORM\OneToMany(targetEntity=ControleTachygraphe::class, mappedBy="vehicle", cascade={"remove"})
*/
private $controleTachygraphes;
/**
* @ORM\OneToMany(targetEntity=ControleLimiteurVitesse::class, mappedBy="vehicle", cascade={"remove"})
*/
private $controleLimiteurVitesses;
/**
* @ORM\OneToMany(targetEntity=DocumentDriver::class, mappedBy="vehicle", cascade={"remove"})
*/
private $documentDrivers;
/**
* @ORM\OneToMany(targetEntity=Carburant::class, mappedBy="vehicle", cascade={"remove"})
*/
private $carburants;
public function __construct()
{
$this->acquisitions = new ArrayCollection();
$this->assurances = new ArrayCollection();
$this->controleTechniques = new ArrayCollection();
$this->controleTachygraphes = new ArrayCollection();
$this->controleLimiteurVitesses = new ArrayCollection();
$this->documentDrivers = new ArrayCollection();
$this->carburants = new ArrayCollection();
}
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 getRegistrationNumber(): ?string
{
return $this->registrationNumber;
}
public function setRegistrationNumber(?string $registrationNumber): self
{
$this->registrationNumber = $registrationNumber;
return $this;
}
public function getRegistrationDate(): ?\DateTimeInterface
{
return $this->registrationDate;
}
public function setRegistrationDate(?\DateTimeInterface $registrationDate): self
{
$this->registrationDate = $registrationDate;
return $this;
}
public function getCo2Emmissions(): ?string
{
return $this->co2Emmissions;
}
public function setCo2Emmissions(?string $co2Emmissions): self
{
$this->co2Emmissions = $co2Emmissions;
return $this;
}
public function getCommercialName(): ?string
{
return $this->commercialName;
}
public function setCommercialName(?string $commercialName): self
{
$this->commercialName = $commercialName;
return $this;
}
public function getEnvironmentalClass(): ?string
{
return $this->environmentalClass;
}
public function setEnvironmentalClass(?string $environmentalClass): self
{
$this->environmentalClass = $environmentalClass;
return $this;
}
public function getLatestKm(): ?string
{
return $this->latestKm;
}
public function setLatestKm(?string $latestKm): self
{
$this->latestKm = $latestKm;
return $this;
}
public function getColor(): ?string
{
return $this->color;
}
public function setColor(?string $color): self
{
$this->color = $color;
return $this;
}
public function getAcquisition(): ?string
{
return $this->acquisition;
}
public function setAcquisition(?string $acquisition): self
{
$this->acquisition = $acquisition;
return $this;
}
public function getParkNumber(): ?string
{
return $this->parkNumber;
}
public function setParkNumber(?string $parkNumber): self
{
$this->parkNumber = $parkNumber;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): self
{
$this->image = $image;
return $this;
}
public function getFile()
{
return $this->file;
}
public function setFile($file)
{
$this->file = $file;
return $this;
}
public function getPark(): ?Park
{
return $this->park;
}
public function setPark(?Park $park): self
{
$this->park = $park;
return $this;
}
public function getBrand(): ?Brand
{
return $this->brand;
}
public function setBrand(?Brand $brand): self
{
$this->brand = $brand;
return $this;
}
public function getType(): ?VehicleType
{
return $this->type;
}
public function setType(?VehicleType $type): self
{
$this->type = $type;
return $this;
}
public function getVehicleGroup(): ?VehicleGroup
{
return $this->vehicleGroup;
}
public function setVehicleGroup(?VehicleGroup $vehicleGroup): self
{
$this->vehicleGroup = $vehicleGroup;
return $this;
}
public function getCgTvv(): ?string
{
return $this->cgTvv;
}
public function setCgTvv(?string $cgTvv): self
{
$this->cgTvv = $cgTvv;
return $this;
}
public function getCgCnit(): ?string
{
return $this->cgCnit;
}
public function setCgCnit(?string $cgCnit): self
{
$this->cgCnit = $cgCnit;
return $this;
}
public function getCgVin(): ?string
{
return $this->cgVin;
}
public function setCgVin(?string $cgVin): self
{
$this->cgVin = $cgVin;
return $this;
}
public function getCgPtac(): ?string
{
return $this->cgPtac;
}
public function setCgPtac(?string $cgPtac): self
{
$this->cgPtac = $cgPtac;
return $this;
}
public function getCgMaximumCharge(): ?string
{
return $this->cgMaximumCharge;
}
public function setCgMaximumCharge(?string $cgMaximumCharge): self
{
$this->cgMaximumCharge = $cgMaximumCharge;
return $this;
}
public function getCgPtra(): ?string
{
return $this->cgPtra;
}
public function setCgPtra(?string $cgPtra): self
{
$this->cgPtra = $cgPtra;
return $this;
}
public function getCgVehicleMass(): ?string
{
return $this->cgVehicleMass;
}
public function setCgVehicleMass(?string $cgVehicleMass): self
{
$this->cgVehicleMass = $cgVehicleMass;
return $this;
}
public function getCgPoidsVide(): ?string
{
return $this->cgPoidsVide;
}
public function setCgPoidsVide(?string $cgPoidsVide): self
{
$this->cgPoidsVide = $cgPoidsVide;
return $this;
}
public function getCgCertificateDate(): ?\DateTimeInterface
{
return $this->cgCertificateDate;
}
public function setCgCertificateDate(?\DateTimeInterface $cgCertificateDate): self
{
$this->cgCertificateDate = $cgCertificateDate;
return $this;
}
public function getCgVehicleCategory(): ?string
{
return $this->cgVehicleCategory;
}
public function setCgVehicleCategory(?string $cgVehicleCategory): self
{
$this->cgVehicleCategory = $cgVehicleCategory;
return $this;
}
public function getCgVp(): ?string
{
return $this->cgVp;
}
public function setCgVp(?string $cgVp): self
{
$this->cgVp = $cgVp;
return $this;
}
public function getCgBodyCode(): ?string
{
return $this->cgBodyCode;
}
public function setCgBodyCode(?string $cgBodyCode): self
{
$this->cgBodyCode = $cgBodyCode;
return $this;
}
public function getCgBodyDesignation(): ?string
{
return $this->cgBodyDesignation;
}
public function setCgBodyDesignation(?string $cgBodyDesignation): self
{
$this->cgBodyDesignation = $cgBodyDesignation;
return $this;
}
public function getCgTan(): ?string
{
return $this->cgTan;
}
public function setCgTan(?string $cgTan): self
{
$this->cgTan = $cgTan;
return $this;
}
public function getCgDisplacement(): ?string
{
return $this->cgDisplacement;
}
public function setCgDisplacement(?string $cgDisplacement): self
{
$this->cgDisplacement = $cgDisplacement;
return $this;
}
public function getCgPowerMax(): ?string
{
return $this->cgPowerMax;
}
public function setCgPowerMax(?string $cgPowerMax): self
{
$this->cgPowerMax = $cgPowerMax;
return $this;
}
public function getCgEnergy(): ?string
{
return $this->cgEnergy;
}
public function setCgEnergy(?string $cgEnergy): self
{
$this->cgEnergy = $cgEnergy;
return $this;
}
public function getCgNap(): ?string
{
return $this->cgNap;
}
public function setCgNap(?string $cgNap): self
{
$this->cgNap = $cgNap;
return $this;
}
public function getCgVitesseMax(): ?string
{
return $this->cgVitesseMax;
}
public function setCgVitesseMax(?string $cgVitesseMax): self
{
$this->cgVitesseMax = $cgVitesseMax;
return $this;
}
public function getCgPlaceNumber(): ?string
{
return $this->cgPlaceNumber;
}
public function setCgPlaceNumber(?string $cgPlaceNumber): self
{
$this->cgPlaceNumber = $cgPlaceNumber;
return $this;
}
public function getSgStandingPlaceNumber(): ?string
{
return $this->sgStandingPlaceNumber;
}
public function setSgStandingPlaceNumber(?string $sgStandingPlaceNumber): self
{
$this->sgStandingPlaceNumber = $sgStandingPlaceNumber;
return $this;
}
public function getSgNiveauSonor(): ?string
{
return $this->sgNiveauSonor;
}
public function setSgNiveauSonor(?string $sgNiveauSonor): self
{
$this->sgNiveauSonor = $sgNiveauSonor;
return $this;
}
public function getSgEngineSpeed(): ?string
{
return $this->sgEngineSpeed;
}
public function setSgEngineSpeed(?string $sgEngineSpeed): self
{
$this->sgEngineSpeed = $sgEngineSpeed;
return $this;
}
public function getTcLength(): ?string
{
return $this->tcLength;
}
public function setTcLength(?string $tcLength): self
{
$this->tcLength = $tcLength;
return $this;
}
public function getTcWidth(): ?string
{
return $this->tcWidth;
}
public function setTcWidth(?string $tcWidth): self
{
$this->tcWidth = $tcWidth;
return $this;
}
public function getTcHeight(): ?string
{
return $this->tcHeight;
}
public function setTcHeight(?string $tcHeight): self
{
$this->tcHeight = $tcHeight;
return $this;
}
public function getTcTankCapacity(): ?string
{
return $this->tcTankCapacity;
}
public function setTcTankCapacity(?string $tcTankCapacity): self
{
$this->tcTankCapacity = $tcTankCapacity;
return $this;
}
public function getTcUrbanConsumption(): ?string
{
return $this->tcUrbanConsumption;
}
public function setTcUrbanConsumption(?string $tcUrbanConsumption): self
{
$this->tcUrbanConsumption = $tcUrbanConsumption;
return $this;
}
public function getTcExtraUrbanConsumption(): ?string
{
return $this->tcExtraUrbanConsumption;
}
public function setTcExtraUrbanConsumption(?string $tcExtraUrbanConsumption): self
{
$this->tcExtraUrbanConsumption = $tcExtraUrbanConsumption;
return $this;
}
public function getTcAutorouteConsumption(): ?string
{
return $this->tcAutorouteConsumption;
}
public function setTcAutorouteConsumption(?string $tcAutorouteConsumption): self
{
$this->tcAutorouteConsumption = $tcAutorouteConsumption;
return $this;
}
public function isOvGps(): ?bool
{
return $this->ovGps;
}
public function setOvGps(?bool $ovGps): self
{
$this->ovGps = $ovGps;
return $this;
}
public function isOvMusic(): ?bool
{
return $this->ovMusic;
}
public function setOvMusic(?bool $ovMusic): self
{
$this->ovMusic = $ovMusic;
return $this;
}
public function isOvClimatisation(): ?bool
{
return $this->ovClimatisation;
}
public function setOvClimatisation(?bool $ovClimatisation): self
{
$this->ovClimatisation = $ovClimatisation;
return $this;
}
public function isOvPanoramicRoof(): ?bool
{
return $this->ovPanoramicRoof;
}
public function setOvPanoramicRoof(?bool $ovPanoramicRoof): self
{
$this->ovPanoramicRoof = $ovPanoramicRoof;
return $this;
}
public function isOvToilet(): ?bool
{
return $this->ovToilet;
}
public function setOvToilet(?bool $ovToilet): self
{
$this->ovToilet = $ovToilet;
return $this;
}
public function isOvTv(): ?bool
{
return $this->ovTv;
}
public function setOvTv(?bool $ovTv): self
{
$this->ovTv = $ovTv;
return $this;
}
public function isOvLeatherSeat(): ?bool
{
return $this->ovLeatherSeat;
}
public function setOvLeatherSeat(?bool $ovLeatherSeat): self
{
$this->ovLeatherSeat = $ovLeatherSeat;
return $this;
}
public function isOvReclinerSeat(): ?bool
{
return $this->ovReclinerSeat;
}
public function setOvReclinerSeat(?bool $ovReclinerSeat): self
{
$this->ovReclinerSeat = $ovReclinerSeat;
return $this;
}
public function isOvArmrest(): ?bool
{
return $this->ovArmrest;
}
public function setOvArmrest(?bool $ovArmrest): self
{
$this->ovArmrest = $ovArmrest;
return $this;
}
public function isOvSeatSelf(): ?bool
{
return $this->ovSeatSelf;
}
public function setOvSeatSelf(?bool $ovSeatSelf): self
{
$this->ovSeatSelf = $ovSeatSelf;
return $this;
}
public function isOvDesk(): ?bool
{
return $this->ovDesk;
}
public function setOvDesk(?bool $ovDesk): self
{
$this->ovDesk = $ovDesk;
return $this;
}
public function isOvCigaretteLighter(): ?bool
{
return $this->ovCigaretteLighter;
}
public function setOvCigaretteLighter(?bool $ovCigaretteLighter): self
{
$this->ovCigaretteLighter = $ovCigaretteLighter;
return $this;
}
public function isOvPlug220v(): ?bool
{
return $this->ovPlug220v;
}
public function setOvPlug220v(?bool $ovPlug220v): self
{
$this->ovPlug220v = $ovPlug220v;
return $this;
}
public function isOvPlugUsb(): ?bool
{
return $this->ovPlugUsb;
}
public function setOvPlugUsb(?bool $ovPlugUsb): self
{
$this->ovPlugUsb = $ovPlugUsb;
return $this;
}
public function isOvWaterBottle(): ?bool
{
return $this->ovWaterBottle;
}
public function setOvWaterBottle(?bool $ovWaterBottle): self
{
$this->ovWaterBottle = $ovWaterBottle;
return $this;
}
public function isOvFrigo(): ?bool
{
return $this->ovFrigo;
}
public function setOvFrigo(?bool $ovFrigo): self
{
$this->ovFrigo = $ovFrigo;
return $this;
}
public function isOvCoffeeMachine(): ?bool
{
return $this->ovCoffeeMachine;
}
public function setOvCoffeeMachine(?bool $ovCoffeeMachine): self
{
$this->ovCoffeeMachine = $ovCoffeeMachine;
return $this;
}
public function isOvKichenette(): ?bool
{
return $this->ovKichenette;
}
public function setOvKichenette(?bool $ovKichenette): self
{
$this->ovKichenette = $ovKichenette;
return $this;
}
public function isOvBandingTrailer(): ?bool
{
return $this->ovBandingTrailer;
}
public function setOvBandingTrailer(?bool $ovBandingTrailer): self
{
$this->ovBandingTrailer = $ovBandingTrailer;
return $this;
}
public function isOvBoxMotorBanding(): ?bool
{
return $this->ovBoxMotorBanding;
}
public function setOvBoxMotorBanding(?bool $ovBoxMotorBanding): self
{
$this->ovBoxMotorBanding = $ovBoxMotorBanding;
return $this;
}
public function isOvMaxiBunkerBanding(): ?bool
{
return $this->ovMaxiBunkerBanding;
}
public function setOvMaxiBunkerBanding(?bool $ovMaxiBunkerBanding): self
{
$this->ovMaxiBunkerBanding = $ovMaxiBunkerBanding;
return $this;
}
/**
* @return Collection<int, Acquisition>
*/
public function getAcquisitions(): Collection
{
return $this->acquisitions;
}
public function addAcquisition(Acquisition $acquisition): self
{
if (!$this->acquisitions->contains($acquisition)) {
$this->acquisitions[] = $acquisition;
$acquisition->setVehicle($this);
}
return $this;
}
public function removeAcquisition(Acquisition $acquisition): self
{
if ($this->acquisitions->removeElement($acquisition)) {
// set the owning side to null (unless already changed)
if ($acquisition->getVehicle() === $this) {
$acquisition->setVehicle(null);
}
}
return $this;
}
/**
* @return Collection<int, Assurance>
*/
public function getAssurances(): Collection
{
return $this->assurances;
}
public function addAssurance(Assurance $assurance): self
{
if (!$this->assurances->contains($assurance)) {
$this->assurances[] = $assurance;
$assurance->setVehicle($this);
}
return $this;
}
public function removeAssurance(Assurance $assurance): self
{
if ($this->assurances->removeElement($assurance)) {
// set the owning side to null (unless already changed)
if ($assurance->getVehicle() === $this) {
$assurance->setVehicle(null);
}
}
return $this;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(?string $code): self
{
$this->code = $code;
return $this;
}
public function isArchive(): ?bool
{
return $this->archive;
}
public function setArchive(bool $archive): self
{
$this->archive = $archive;
return $this;
}
/**
* @return Collection<int, ControleTechnique>
*/
public function getControleTechniques(): Collection
{
return $this->controleTechniques;
}
public function addControleTechnique(ControleTechnique $controleTechnique): self
{
if (!$this->controleTechniques->contains($controleTechnique)) {
$this->controleTechniques[] = $controleTechnique;
$controleTechnique->setVehicle($this);
}
return $this;
}
public function removeControleTechnique(ControleTechnique $controleTechnique): self
{
if ($this->controleTechniques->removeElement($controleTechnique)) {
// set the owning side to null (unless already changed)
if ($controleTechnique->getVehicle() === $this) {
$controleTechnique->setVehicle(null);
}
}
return $this;
}
/**
* @return Collection<int, ControleTachygraphe>
*/
public function getControleTachygraphes(): Collection
{
return $this->controleTachygraphes;
}
public function addControleTachygraphe(ControleTachygraphe $controleTachygraphe): self
{
if (!$this->controleTachygraphes->contains($controleTachygraphe)) {
$this->controleTachygraphes[] = $controleTachygraphe;
$controleTachygraphe->setVehicle($this);
}
return $this;
}
public function removeControleTachygraphe(ControleTachygraphe $controleTachygraphe): self
{
if ($this->controleTachygraphes->removeElement($controleTachygraphe)) {
// set the owning side to null (unless already changed)
if ($controleTachygraphe->getVehicle() === $this) {
$controleTachygraphe->setVehicle(null);
}
}
return $this;
}
/**
* @return Collection<int, ControleLimiteurVitesse>
*/
public function getControleLimiteurVitesses(): Collection
{
return $this->controleLimiteurVitesses;
}
public function addControleLimiteurVitess(ControleLimiteurVitesse $controleLimiteurVitess): self
{
if (!$this->controleLimiteurVitesses->contains($controleLimiteurVitess)) {
$this->controleLimiteurVitesses[] = $controleLimiteurVitess;
$controleLimiteurVitess->setVehicle($this);
}
return $this;
}
public function removeControleLimiteurVitess(ControleLimiteurVitesse $controleLimiteurVitess): self
{
if ($this->controleLimiteurVitesses->removeElement($controleLimiteurVitess)) {
// set the owning side to null (unless already changed)
if ($controleLimiteurVitess->getVehicle() === $this) {
$controleLimiteurVitess->setVehicle(null);
}
}
return $this;
}
/**
* @return Collection<int, DocumentDriver>
*/
public function getDocumentDrivers(): Collection
{
return $this->documentDrivers;
}
public function addDocumentDriver(DocumentDriver $documentDriver): self
{
if (!$this->documentDrivers->contains($documentDriver)) {
$this->documentDrivers[] = $documentDriver;
$documentDriver->setVehicle($this);
}
return $this;
}
public function removeDocumentDriver(DocumentDriver $documentDriver): self
{
if ($this->documentDrivers->removeElement($documentDriver)) {
// set the owning side to null (unless already changed)
if ($documentDriver->getVehicle() === $this) {
$documentDriver->setVehicle(null);
}
}
return $this;
}
/**
* @return Collection<int, Carburant>
*/
public function getCarburants(): Collection
{
return $this->carburants;
}
public function addCarburant(Carburant $carburant): self
{
if (!$this->carburants->contains($carburant)) {
$this->carburants[] = $carburant;
$carburant->setVehicle($this);
}
return $this;
}
public function removeCarburant(Carburant $carburant): self
{
if ($this->carburants->removeElement($carburant)) {
// set the owning side to null (unless already changed)
if ($carburant->getVehicle() === $this) {
$carburant->setVehicle(null);
}
}
return $this;
}
}