src/DcSiteBundle/Entity/ServiceVariation.php line 15

Open in your IDE?
  1. <?php
  2. namespace DcSiteBundle\Entity;
  3. use CoreBundle\Entity\Model;
  4. use CoreBundle\Entity\Dealer;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Application\Sonata\MediaBundle\Entity\Media;
  7. use Doctrine\Common\Collections\Collection;
  8. use DateTime;
  9. /**
  10.  * ServiceVariation
  11.  */
  12. class ServiceVariation
  13. {
  14.     /**
  15.      * @var integer
  16.      */
  17.     private $id;
  18.     /**
  19.      * @var float
  20.      */
  21.     private $engine_volume;
  22.     /**
  23.      * @var integer
  24.      */
  25.     private $power;
  26.     /**
  27.      * @var integer
  28.      */
  29.     private $year_from;
  30.     /**
  31.      * @var integer
  32.      */
  33.     private $year_to;
  34.     /**
  35.      * @var integer
  36.      */
  37.     private $transmission_step_count;
  38.     /**
  39.      * @var string
  40.      */
  41.     private $uid_1c;
  42.     /**
  43.      * @var Model
  44.      */
  45.     private $model;
  46.     /**
  47.      * @var Dealer
  48.      */
  49.     private $dealer;
  50.     public function __toString()
  51.     {
  52.         return (string)$this->getId();
  53.     }
  54.     /**
  55.      * Get id
  56.      *
  57.      * @return integer
  58.      */
  59.     public function getId()
  60.     {
  61.         return $this->id;
  62.     }
  63.     /**
  64.      * Set engineVolume
  65.      *
  66.      * @param float $engineVolume
  67.      *
  68.      * @return ServiceVariation
  69.      */
  70.     public function setEngineVolume($engineVolume)
  71.     {
  72.         $this->engine_volume $engineVolume;
  73.         return $this;
  74.     }
  75.     /**
  76.      * Get engineVolume
  77.      *
  78.      * @return float
  79.      */
  80.     public function getEngineVolume()
  81.     {
  82.         return $this->engine_volume;
  83.     }
  84.     /**
  85.      * Set power
  86.      *
  87.      * @param integer $power
  88.      *
  89.      * @return ServiceVariation
  90.      */
  91.     public function setPower($power)
  92.     {
  93.         $this->power $power;
  94.         return $this;
  95.     }
  96.     /**
  97.      * Get power
  98.      *
  99.      * @return integer
  100.      */
  101.     public function getPower()
  102.     {
  103.         return $this->power;
  104.     }
  105.     /**
  106.      * Set yearFrom
  107.      *
  108.      * @param integer $yearFrom
  109.      *
  110.      * @return ServiceVariation
  111.      */
  112.     public function setYearFrom($yearFrom)
  113.     {
  114.         $this->year_from $yearFrom;
  115.         return $this;
  116.     }
  117.     /**
  118.      * Get yearFrom
  119.      *
  120.      * @return integer
  121.      */
  122.     public function getYearFrom()
  123.     {
  124.         return $this->year_from;
  125.     }
  126.     /**
  127.      * Set yearTo
  128.      *
  129.      * @param integer $yearTo
  130.      *
  131.      * @return ServiceVariation
  132.      */
  133.     public function setYearTo($yearTo)
  134.     {
  135.         $this->year_to $yearTo;
  136.         return $this;
  137.     }
  138.     /**
  139.      * Get yearTo
  140.      *
  141.      * @return integer
  142.      */
  143.     public function getYearTo()
  144.     {
  145.         return $this->year_to;
  146.     }
  147.     /**
  148.      * Set transmissionStepCount
  149.      *
  150.      * @param integer $transmissionStepCount
  151.      *
  152.      * @return ServiceVariation
  153.      */
  154.     public function setTransmissionStepCount($transmissionStepCount)
  155.     {
  156.         $this->transmission_step_count $transmissionStepCount;
  157.         return $this;
  158.     }
  159.     /**
  160.      * Get transmissionStepCount
  161.      *
  162.      * @return integer
  163.      */
  164.     public function getTransmissionStepCount()
  165.     {
  166.         return $this->transmission_step_count;
  167.     }
  168.     /**
  169.      * Set uid1c
  170.      *
  171.      * @param string $uid1c
  172.      *
  173.      * @return ServiceVariation
  174.      */
  175.     public function setUid1c($uid1c)
  176.     {
  177.         $this->uid_1c $uid1c;
  178.         return $this;
  179.     }
  180.     /**
  181.      * Get uid1c
  182.      *
  183.      * @return string
  184.      */
  185.     public function getUid1c()
  186.     {
  187.         return $this->uid_1c;
  188.     }
  189.     /**
  190.      * Set model
  191.      *
  192.      * @param Model $model
  193.      *
  194.      * @return ServiceVariation
  195.      */
  196.     public function setModel(Model $model null)
  197.     {
  198.         $this->model $model;
  199.         return $this;
  200.     }
  201.     /**
  202.      * Get model
  203.      *
  204.      * @return Model
  205.      */
  206.     public function getModel()
  207.     {
  208.         return $this->model;
  209.     }
  210.     /**
  211.      * Set dealer
  212.      *
  213.      * @param Dealer $dealer
  214.      *
  215.      * @return ServiceVariation
  216.      */
  217.     public function setDealer(Dealer $dealer null)
  218.     {
  219.         $this->dealer $dealer;
  220.         return $this;
  221.     }
  222.     /**
  223.      * Get dealer
  224.      *
  225.      * @return Dealer
  226.      */
  227.     public function getDealer()
  228.     {
  229.         return $this->dealer;
  230.     }
  231.     /**
  232.      * @var FuelTypes
  233.      */
  234.     private $fuelType;
  235.     /**
  236.      * @var DriveUnitTypes
  237.      */
  238.     private $driveUnit;
  239.     /**
  240.      * @var TransmissionTypes
  241.      */
  242.     private $transmissionType;
  243.     /**
  244.      * Set fuelType
  245.      *
  246.      * @param FuelTypes $fuelType
  247.      *
  248.      * @return ServiceVariation
  249.      */
  250.     public function setFuelType(FuelTypes $fuelType null)
  251.     {
  252.         $this->fuelType $fuelType;
  253.         return $this;
  254.     }
  255.     /**
  256.      * Get fuelType
  257.      *
  258.      * @return FuelTypes
  259.      */
  260.     public function getFuelType()
  261.     {
  262.         return $this->fuelType;
  263.     }
  264.     /**
  265.      * Set driveUnit
  266.      *
  267.      * @param DriveUnitTypes $driveUnit
  268.      *
  269.      * @return ServiceVariation
  270.      */
  271.     public function setDriveUnit(DriveUnitTypes $driveUnit null)
  272.     {
  273.         $this->driveUnit $driveUnit;
  274.         return $this;
  275.     }
  276.     /**
  277.      * Get driveUnit
  278.      *
  279.      * @return DriveUnitTypes
  280.      */
  281.     public function getDriveUnit()
  282.     {
  283.         return $this->driveUnit;
  284.     }
  285.     /**
  286.      * Set transmissionType
  287.      *
  288.      * @param TransmissionTypes $transmissionType
  289.      *
  290.      * @return ServiceVariation
  291.      */
  292.     public function setTransmissionType(TransmissionTypes $transmissionType null)
  293.     {
  294.         $this->transmissionType $transmissionType;
  295.         return $this;
  296.     }
  297.     /**
  298.      * Get transmissionType
  299.      *
  300.      * @return TransmissionTypes
  301.      */
  302.     public function getTransmissionType()
  303.     {
  304.         return $this->transmissionType;
  305.     }
  306.     /**
  307.      * @var Collection
  308.      */
  309.     private $works;
  310.     /**
  311.      * Constructor
  312.      */
  313.     public function __construct()
  314.     {
  315.         $this->works = new ArrayCollection();
  316.     }
  317.     /**
  318.      * Add work
  319.      *
  320.      * @param ServiceWork $work
  321.      *
  322.      * @return ServiceVariation
  323.      */
  324.     public function addWork(ServiceWork $work)
  325.     {
  326.         $this->works[] = $work;
  327.         return $this;
  328.     }
  329.     /**
  330.      * Remove work
  331.      *
  332.      * @param ServiceWork $work
  333.      */
  334.     public function removeWork(ServiceWork $work)
  335.     {
  336.         $this->works->removeElement($work);
  337.     }
  338.     /**
  339.      * Get works
  340.      *
  341.      * @return Collection
  342.      */
  343.     public function getWorks()
  344.     {
  345.         return $this->works;
  346.     }
  347.     /**
  348.      * @var string
  349.      */
  350.     private $engineName;
  351.     /**
  352.      * @var DateTime
  353.      */
  354.     private $saleForm;
  355.     /**
  356.      * @var DateTime
  357.      */
  358.     private $saleTo;
  359.     /**
  360.      * Set engineName
  361.      *
  362.      * @param string $engineName
  363.      *
  364.      * @return ServiceVariation
  365.      */
  366.     public function setEngineName($engineName)
  367.     {
  368.         $this->engineName $engineName;
  369.         return $this;
  370.     }
  371.     /**
  372.      * Get engineName
  373.      *
  374.      * @return string
  375.      */
  376.     public function getEngineName()
  377.     {
  378.         return $this->engineName;
  379.     }
  380.     /**
  381.      * Set saleForm
  382.      *
  383.      * @param DateTime $saleForm
  384.      *
  385.      * @return ServiceVariation
  386.      */
  387.     public function setSaleForm($saleForm)
  388.     {
  389.         $this->saleForm $saleForm;
  390.         return $this;
  391.     }
  392.     /**
  393.      * Get saleForm
  394.      *
  395.      * @return DateTime
  396.      */
  397.     public function getSaleForm()
  398.     {
  399.         return $this->saleForm;
  400.     }
  401.     /**
  402.      * Set saleTo
  403.      *
  404.      * @param DateTime $saleTo
  405.      *
  406.      * @return ServiceVariation
  407.      */
  408.     public function setSaleTo($saleTo)
  409.     {
  410.         $this->saleTo $saleTo;
  411.         return $this;
  412.     }
  413.     /**
  414.      * Get saleTo
  415.      *
  416.      * @return DateTime
  417.      */
  418.     public function getSaleTo()
  419.     {
  420.         return $this->saleTo;
  421.     }
  422.     /**
  423.      * @var string
  424.      */
  425.     private $image_hash;
  426.     /**
  427.      * @var Media
  428.      */
  429.     private $image;
  430.     /**
  431.      * Set imageHash
  432.      *
  433.      * @param string $imageHash
  434.      *
  435.      * @return ServiceVariation
  436.      */
  437.     public function setImageHash($imageHash)
  438.     {
  439.         $this->image_hash $imageHash;
  440.         return $this;
  441.     }
  442.     /**
  443.      * Get imageHash
  444.      *
  445.      * @return string
  446.      */
  447.     public function getImageHash()
  448.     {
  449.         return $this->image_hash;
  450.     }
  451.     /**
  452.      * Set image
  453.      *
  454.      * @param Media $image
  455.      *
  456.      * @return ServiceVariation
  457.      */
  458.     public function setImage(Media $image null)
  459.     {
  460.         $this->image $image;
  461.         return $this;
  462.     }
  463.     /**
  464.      * Get image
  465.      *
  466.      * @return Media
  467.      */
  468.     public function getImage()
  469.     {
  470.         return $this->image;
  471.     }
  472.     /**
  473.      * @var integer
  474.      */
  475.     private $is_delete;
  476.     /**
  477.      * Set isDelete
  478.      *
  479.      * @param integer $isDelete
  480.      *
  481.      * @return ServiceVariation
  482.      */
  483.     public function setIsDelete($isDelete)
  484.     {
  485.         $this->is_delete $isDelete;
  486.         return $this;
  487.     }
  488.     /**
  489.      * Get isDelete
  490.      *
  491.      * @return integer
  492.      */
  493.     public function getIsDelete()
  494.     {
  495.         return $this->is_delete;
  496.     }
  497.     /**
  498.      * @var string
  499.      */
  500.     private $emission;
  501.     /**
  502.      * Set emission
  503.      *
  504.      * @param string $emission
  505.      *
  506.      * @return ServiceVariation
  507.      */
  508.     public function setEmission($emission)
  509.     {
  510.         $this->emission $emission;
  511.         return $this;
  512.     }
  513.     /**
  514.      * Get emission
  515.      *
  516.      * @return string
  517.      */
  518.     public function getEmission()
  519.     {
  520.         return $this->emission;
  521.     }
  522.     /**
  523.      * @var string
  524.      */
  525.     private $description;
  526.     /**
  527.      * Set description
  528.      *
  529.      * @param string $description
  530.      *
  531.      * @return ServiceVariation
  532.      */
  533.     public function setDescription($description)
  534.     {
  535.         $this->description $description;
  536.         return $this;
  537.     }
  538.     /**
  539.      * Get description
  540.      *
  541.      * @return string
  542.      */
  543.     public function getDescription()
  544.     {
  545.         return $this->description;
  546.     }
  547.     /**
  548.      * @var Collection
  549.      */
  550.     private $service_works;
  551.     /**
  552.      * Add serviceWork
  553.      *
  554.      * @param ServiceWork $serviceWork
  555.      *
  556.      * @return ServiceVariation
  557.      */
  558.     public function addServiceWork(ServiceWork $serviceWork)
  559.     {
  560.         $this->service_works[] = $serviceWork;
  561.         return $this;
  562.     }
  563.     /**
  564.      * Remove serviceWork
  565.      *
  566.      * @param ServiceWork $serviceWork
  567.      */
  568.     public function removeServiceWork(ServiceWork $serviceWork)
  569.     {
  570.         $this->service_works->removeElement($serviceWork);
  571.     }
  572.     /**
  573.      * Get serviceWorks
  574.      *
  575.      * @return Collection
  576.      */
  577.     public function getServiceWorks()
  578.     {
  579.         return $this->service_works;
  580.     }
  581. }