<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\ExternalVehicleRepository")
*
* @ORM\Table(name="external_vehicle")
*/
class ExternalVehicle extends Vehicle
{
public const DATAHUB_EXPORT_STATE_PENDING = 'pending';
public const DATAHUB_EXPORT_STATE_ERROR = 'error';
public const DATAHUB_EXPORT_STATE_DONE = 'done';
/**
* @ORM\Column(type="integer", nullable=true)
**/
protected $sourceStartingPrice;
/**
* @ORM\Column(type="integer", nullable=true)
**/
protected $datahubStartingPrice;
/**
* @ORM\Column(type="integer", nullable=true)
**/
protected $datahubSpotPrice;
/**
* @ORM\Column(type="integer", nullable=true)
**/
protected $datahubEstimationPrice;
/**
* @ORM\Column(type="float", nullable=true)
**/
protected $datahubCoefficient;
/**
* @ORM\Column(type="integer", nullable=true)
**/
protected $priceVariationFromBidIncrement;
/**
* @var int|null
*
* @ORM\Column(type="integer", nullable=true)
*/
private $firstRegistrationYear;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $cylinderCapacity;
/**
* @ORM\Column(type="array", nullable=true)
*/
private $accessories;
/**
* @ORM\Column(type="array", nullable=true)
*/
private $DMRReports;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $vatValue;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $formattedAddress;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $supplierCountry;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $fuelType;
/**
* @ORM\Column(type="string", nullable=false)
*/
private $dataHubExportState;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $gearType;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $locationName;
public function __construct()
{
parent::__construct();
$this->dataHubExportState = self::DATAHUB_EXPORT_STATE_PENDING;
}
public function getCylinderCapacity()
{
return $this->cylinderCapacity;
}
public function setCylinderCapacity(?string $cylinderCapacity): void
{
$this->cylinderCapacity = $cylinderCapacity;
}
public function getAccessories()
{
return $this->accessories;
}
public function setAccessories(array $accessories): void
{
$this->accessories = $accessories;
}
public function getDMRReports()
{
return $this->DMRReports;
}
public function setDMRReports(array $DMRReports): void
{
$this->DMRReports = $DMRReports;
}
public function getVatValue()
{
return $this->vatValue;
}
public function setVatValue(?string $vatValue): void
{
$this->vatValue = $vatValue;
}
public function getFormattedAddress()
{
return $this->formattedAddress;
}
public function setFormattedAddress(?string $formattedAddress): void
{
$this->formattedAddress = $formattedAddress;
}
public function getSupplierCountry()
{
return $this->supplierCountry;
}
public function setSupplierCountry(?string $supplierCountry): void
{
$this->supplierCountry = $supplierCountry;
}
public function getFuelType()
{
return $this->fuelType;
}
public function setFuelType(?string $fuelType): void
{
$this->fuelType = $fuelType;
}
public function getGearType()
{
return $this->gearType;
}
public function setGearType(?string $gearType): void
{
$this->gearType = $gearType;
}
public function getFirstRegistrationYear(): ?int
{
return $this->firstRegistrationYear;
}
public function setFirstRegistrationYear(?int $firstRegistrationYear): void
{
$this->firstRegistrationYear = $firstRegistrationYear;
}
public function getSourceStartingPrice(): ?int
{
return $this->sourceStartingPrice;
}
public function setSourceStartingPrice(?int $sourceStartingPrice): void
{
$this->sourceStartingPrice = $sourceStartingPrice;
}
public function getDatahubStartingPrice(): ?int
{
return $this->datahubStartingPrice;
}
public function setDatahubStartingPrice(?int $datahubStartingPrice): void
{
$this->datahubStartingPrice = $datahubStartingPrice;
}
public function getPriceVariationFromBidIncrement(): ?int
{
return $this->priceVariationFromBidIncrement;
}
public function setPriceVariationFromBidIncrement(?int $priceVariationFromBidIncrement): void
{
$this->priceVariationFromBidIncrement = $priceVariationFromBidIncrement;
}
public function getDataHubExportState(): ?string
{
return $this->dataHubExportState;
}
public function setDataHubExportState(?string $dataHubExportState): void
{
$this->dataHubExportState = $dataHubExportState;
}
public function getLocationName(): ?string
{
return $this->locationName;
}
public function setLocationName(?string $locationName): void
{
$this->locationName = $locationName;
}
public function getDatahubSpotPrice(): ?int
{
return $this->datahubSpotPrice;
}
public function setDatahubSpotPrice(?int $datahubSpotPrice): void
{
$this->datahubSpotPrice = $datahubSpotPrice;
}
public function getDatahubEstimationPrice(): ?int
{
return $this->datahubEstimationPrice;
}
public function setDatahubEstimationPrice(?int $datahubEstimationPrice): void
{
$this->datahubEstimationPrice = $datahubEstimationPrice;
}
public function getDatahubCoefficient(): float
{
return $this->datahubCoefficient ?: 0;
}
public function setDatahubCoefficient(?float $datahubCoefficient): void
{
$this->datahubCoefficient = $datahubCoefficient;
}
}