src/Entity/ExternalVehicle.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\ExternalVehicleRepository")
  6.  *
  7.  * @ORM\Table(name="external_vehicle")
  8.  */
  9. class ExternalVehicle extends Vehicle
  10. {
  11.     public const DATAHUB_EXPORT_STATE_PENDING 'pending';
  12.     public const DATAHUB_EXPORT_STATE_ERROR 'error';
  13.     public const DATAHUB_EXPORT_STATE_DONE 'done';
  14.     /**
  15.      * @ORM\Column(type="integer", nullable=true)
  16.      **/
  17.     protected $sourceStartingPrice;
  18.     /**
  19.      * @ORM\Column(type="integer", nullable=true)
  20.      **/
  21.     protected $datahubStartingPrice;
  22.     /**
  23.      * @ORM\Column(type="integer", nullable=true)
  24.      **/
  25.     protected $datahubSpotPrice;
  26.     /**
  27.      * @ORM\Column(type="integer", nullable=true)
  28.      **/
  29.     protected $datahubEstimationPrice;
  30.     /**
  31.      * @ORM\Column(type="float", nullable=true)
  32.      **/
  33.     protected $datahubCoefficient;
  34.     /**
  35.      * @ORM\Column(type="integer", nullable=true)
  36.      **/
  37.     protected $priceVariationFromBidIncrement;
  38.     /**
  39.      * @var int|null
  40.      *
  41.      * @ORM\Column(type="integer", nullable=true)
  42.      */
  43.     private $firstRegistrationYear;
  44.     /**
  45.      * @ORM\Column(type="string", nullable=true)
  46.      */
  47.     private $cylinderCapacity;
  48.     /**
  49.      * @ORM\Column(type="array", nullable=true)
  50.      */
  51.     private $accessories;
  52.     /**
  53.      * @ORM\Column(type="array", nullable=true)
  54.      */
  55.     private $DMRReports;
  56.     /**
  57.      * @ORM\Column(type="string", nullable=true)
  58.      */
  59.     private $vatValue;
  60.     /**
  61.      * @ORM\Column(type="string", nullable=true)
  62.      */
  63.     private $formattedAddress;
  64.     /**
  65.      * @ORM\Column(type="string", nullable=true)
  66.      */
  67.     private $supplierCountry;
  68.     /**
  69.      * @ORM\Column(type="string", nullable=true)
  70.      */
  71.     private $fuelType;
  72.     /**
  73.      * @ORM\Column(type="string", nullable=false)
  74.      */
  75.     private $dataHubExportState;
  76.     /**
  77.      * @ORM\Column(type="string", nullable=true)
  78.      */
  79.     private $gearType;
  80.     /**
  81.      * @ORM\Column(type="string", nullable=true)
  82.      */
  83.     private $locationName;
  84.     public function __construct()
  85.     {
  86.         parent::__construct();
  87.         $this->dataHubExportState self::DATAHUB_EXPORT_STATE_PENDING;
  88.     }
  89.     public function getCylinderCapacity()
  90.     {
  91.         return $this->cylinderCapacity;
  92.     }
  93.     public function setCylinderCapacity(?string $cylinderCapacity): void
  94.     {
  95.         $this->cylinderCapacity $cylinderCapacity;
  96.     }
  97.     public function getAccessories()
  98.     {
  99.         return $this->accessories;
  100.     }
  101.     public function setAccessories(array $accessories): void
  102.     {
  103.         $this->accessories $accessories;
  104.     }
  105.     public function getDMRReports()
  106.     {
  107.         return $this->DMRReports;
  108.     }
  109.     public function setDMRReports(array $DMRReports): void
  110.     {
  111.         $this->DMRReports $DMRReports;
  112.     }
  113.     public function getVatValue()
  114.     {
  115.         return $this->vatValue;
  116.     }
  117.     public function setVatValue(?string $vatValue): void
  118.     {
  119.         $this->vatValue $vatValue;
  120.     }
  121.     public function getFormattedAddress()
  122.     {
  123.         return $this->formattedAddress;
  124.     }
  125.     public function setFormattedAddress(?string $formattedAddress): void
  126.     {
  127.         $this->formattedAddress $formattedAddress;
  128.     }
  129.     public function getSupplierCountry()
  130.     {
  131.         return $this->supplierCountry;
  132.     }
  133.     public function setSupplierCountry(?string $supplierCountry): void
  134.     {
  135.         $this->supplierCountry $supplierCountry;
  136.     }
  137.     public function getFuelType()
  138.     {
  139.         return $this->fuelType;
  140.     }
  141.     public function setFuelType(?string $fuelType): void
  142.     {
  143.         $this->fuelType $fuelType;
  144.     }
  145.     public function getGearType()
  146.     {
  147.         return $this->gearType;
  148.     }
  149.     public function setGearType(?string $gearType): void
  150.     {
  151.         $this->gearType $gearType;
  152.     }
  153.     public function getFirstRegistrationYear(): ?int
  154.     {
  155.         return $this->firstRegistrationYear;
  156.     }
  157.     public function setFirstRegistrationYear(?int $firstRegistrationYear): void
  158.     {
  159.         $this->firstRegistrationYear $firstRegistrationYear;
  160.     }
  161.     public function getSourceStartingPrice(): ?int
  162.     {
  163.         return $this->sourceStartingPrice;
  164.     }
  165.     public function setSourceStartingPrice(?int $sourceStartingPrice): void
  166.     {
  167.         $this->sourceStartingPrice $sourceStartingPrice;
  168.     }
  169.     public function getDatahubStartingPrice(): ?int
  170.     {
  171.         return $this->datahubStartingPrice;
  172.     }
  173.     public function setDatahubStartingPrice(?int $datahubStartingPrice): void
  174.     {
  175.         $this->datahubStartingPrice $datahubStartingPrice;
  176.     }
  177.     public function getPriceVariationFromBidIncrement(): ?int
  178.     {
  179.         return $this->priceVariationFromBidIncrement;
  180.     }
  181.     public function setPriceVariationFromBidIncrement(?int $priceVariationFromBidIncrement): void
  182.     {
  183.         $this->priceVariationFromBidIncrement $priceVariationFromBidIncrement;
  184.     }
  185.     public function getDataHubExportState(): ?string
  186.     {
  187.         return $this->dataHubExportState;
  188.     }
  189.     public function setDataHubExportState(?string $dataHubExportState): void
  190.     {
  191.         $this->dataHubExportState $dataHubExportState;
  192.     }
  193.     public function getLocationName(): ?string
  194.     {
  195.         return $this->locationName;
  196.     }
  197.     public function setLocationName(?string $locationName): void
  198.     {
  199.         $this->locationName $locationName;
  200.     }
  201.     public function getDatahubSpotPrice(): ?int
  202.     {
  203.         return $this->datahubSpotPrice;
  204.     }
  205.     public function setDatahubSpotPrice(?int $datahubSpotPrice): void
  206.     {
  207.         $this->datahubSpotPrice $datahubSpotPrice;
  208.     }
  209.     public function getDatahubEstimationPrice(): ?int
  210.     {
  211.         return $this->datahubEstimationPrice;
  212.     }
  213.     public function setDatahubEstimationPrice(?int $datahubEstimationPrice): void
  214.     {
  215.         $this->datahubEstimationPrice $datahubEstimationPrice;
  216.     }
  217.     public function getDatahubCoefficient(): float
  218.     {
  219.         return $this->datahubCoefficient ?: 0;
  220.     }
  221.     public function setDatahubCoefficient(?float $datahubCoefficient): void
  222.     {
  223.         $this->datahubCoefficient $datahubCoefficient;
  224.     }
  225. }