<?php
namespace App\Entity;
use App\Repository\InspectionRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
/**
* @ORM\Entity(repositoryClass=InspectionRepository::class)
* @ORM\HasLifecycleCallbacks()
*/
class Inspection
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $clientName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $clientPhone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $location;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $inspectedBy;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $seller;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $brandModel;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $mileage;
/**
* @ORM\Column(type="string", length=25, nullable=true)
*/
private $patent;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $engineType;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $accessories;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $mileageDistribution;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tireCondition;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $checkEngine;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $oilMileage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $duplicateKey;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $manuals;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emergencyKit;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $interiorCondition;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $glass;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $exteriorCondition;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $engineDetails;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $transmissionClutch;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $frontRearSuspension;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $brakesAbs;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $acHeating;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $electronics;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $others;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\OneToMany(targetEntity=InspectionImages::class, mappedBy="car", cascade={"persist", "remove"}, orphanRemoval=true)
*/
private $imageId;
public function __construct()
{
$this->imageId = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getClientName(): ?string
{
return $this->clientName;
}
public function setClientName(string $clientName): self
{
$this->clientName = $clientName;
return $this;
}
public function getClientPhone(): ?string
{
return $this->clientPhone;
}
public function setClientPhone(?string $clientPhone): self
{
$this->clientPhone = $clientPhone;
return $this;
}
public function getLocation(): ?string
{
return $this->location;
}
public function setLocation(?string $location): self
{
$this->location = $location;
return $this;
}
public function getInspectedBy(): ?string
{
return $this->inspectedBy;
}
public function setInspectedBy(?string $inspectedBy): self
{
$this->inspectedBy = $inspectedBy;
return $this;
}
public function getSeller(): ?string
{
return $this->seller;
}
public function setSeller(?string $seller): self
{
$this->seller = $seller;
return $this;
}
public function getBrandModel(): ?string
{
return $this->brandModel;
}
public function setBrandModel(?string $brandModel): self
{
$this->brandModel = $brandModel;
return $this;
}
public function getMileage(): ?string
{
return $this->mileage;
}
public function setMileage(?string $mileage): self
{
$this->mileage = $mileage;
return $this;
}
public function getPatent(): ?string
{
return $this->patent;
}
public function setPatent(?string $patent): self
{
$this->patent = $patent;
return $this;
}
public function getEngineType(): ?string
{
return $this->engineType;
}
public function setEngineType(?string $engineType): self
{
$this->engineType = $engineType;
return $this;
}
public function getAccessories(): ?string
{
return $this->accessories;
}
public function setAccessories(?string $accessories): self
{
$this->accessories = $accessories;
return $this;
}
public function getMileageDistribution(): ?string
{
return $this->mileageDistribution;
}
public function setMileageDistribution(?string $mileageDistribution): self
{
$this->mileageDistribution = $mileageDistribution;
return $this;
}
public function getTireCondition(): ?string
{
return $this->tireCondition;
}
public function setTireCondition(?string $tireCondition): self
{
$this->tireCondition = $tireCondition;
return $this;
}
public function getCheckEngine(): ?string
{
return $this->checkEngine;
}
public function setCheckEngine(?string $checkEngine): self
{
$this->checkEngine = $checkEngine;
return $this;
}
public function getOilMileage(): ?string
{
return $this->oilMileage;
}
public function setOilMileage(?string $oilMileage): self
{
$this->oilMileage = $oilMileage;
return $this;
}
public function getDuplicateKey(): ?string
{
return $this->duplicateKey;
}
public function setDuplicateKey(?string $duplicateKey): self
{
$this->duplicateKey = $duplicateKey;
return $this;
}
public function getManuals(): ?string
{
return $this->manuals;
}
public function setManuals(?string $manuals): self
{
$this->manuals = $manuals;
return $this;
}
public function getEmergencyKit(): ?string
{
return $this->emergencyKit;
}
public function setEmergencyKit(?string $emergencyKit): self
{
$this->emergencyKit = $emergencyKit;
return $this;
}
public function getInteriorCondition(): ?string
{
return $this->interiorCondition;
}
public function setInteriorCondition(?string $interiorCondition): self
{
$this->interiorCondition = $interiorCondition;
return $this;
}
public function getGlass(): ?string
{
return $this->glass;
}
public function setGlass(?string $glass): self
{
$this->glass = $glass;
return $this;
}
public function getExteriorCondition(): ?string
{
return $this->exteriorCondition;
}
public function setExteriorCondition(?string $exteriorCondition): self
{
$this->exteriorCondition = $exteriorCondition;
return $this;
}
public function getEngineDetails(): ?string
{
return $this->engineDetails;
}
public function setEngineDetails(?string $engineDetails): self
{
$this->engineDetails = $engineDetails;
return $this;
}
public function getTransmissionClutch(): ?string
{
return $this->transmissionClutch;
}
public function setTransmissionClutch(?string $transmissionClutch): self
{
$this->transmissionClutch = $transmissionClutch;
return $this;
}
public function getFrontRearSuspension(): ?string
{
return $this->frontRearSuspension;
}
public function setFrontRearSuspension(?string $frontRearSuspension): self
{
$this->frontRearSuspension = $frontRearSuspension;
return $this;
}
public function getBrakesAbs(): ?string
{
return $this->brakesAbs;
}
public function setBrakesAbs(?string $brakesAbs): self
{
$this->brakesAbs = $brakesAbs;
return $this;
}
public function getAcHeating(): ?string
{
return $this->acHeating;
}
public function setAcHeating(?string $acHeating): self
{
$this->acHeating = $acHeating;
return $this;
}
public function getElectronics(): ?string
{
return $this->electronics;
}
public function setElectronics(?string $electronics): self
{
$this->electronics = $electronics;
return $this;
}
public function getOthers(): ?string
{
return $this->others;
}
public function setOthers(?string $others): self
{
$this->others = $others;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAt(): self
{
$this->createdAt = new \DateTime();
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
/**
* @ORM\PreUpdate
*/
public function setUpdatedAt(): self
{
$this->updatedAt = new \DateTime();
return $this;
}
/**
* @return Collection|InspectionImages[]
*/
public function getImageId(): Collection
{
return $this->imageId;
}
public function addImageId(InspectionImages $imageId): self
{
if (!$this->imageId->contains($imageId)) {
//$this->imageId[] = $imageId;
$this->imageId->add($imageId);
$imageId->setCar($this);
}
return $this;
}
public function removeImageId(InspectionImages $imageId): self
{
if ($this->imageId->removeElement($imageId)) {
// set the owning side to null (unless already changed)
if ($imageId->getCar() === $this) {
$imageId->setCar(null);
}
}
return $this;
}
}