<?phpnamespace DcSiteBundle\Entity;use CoreBundle\Entity\Model;use CoreBundle\Entity\Dealer;use Doctrine\Common\Collections\ArrayCollection;use Application\Sonata\MediaBundle\Entity\Media;use Doctrine\Common\Collections\Collection;use DateTime;/** * ServiceVariation */class ServiceVariation{ /** * @var integer */ private $id; /** * @var float */ private $engine_volume; /** * @var integer */ private $power; /** * @var integer */ private $year_from; /** * @var integer */ private $year_to; /** * @var integer */ private $transmission_step_count; /** * @var string */ private $uid_1c; /** * @var Model */ private $model; /** * @var Dealer */ private $dealer; public function __toString() { return (string)$this->getId(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set engineVolume * * @param float $engineVolume * * @return ServiceVariation */ public function setEngineVolume($engineVolume) { $this->engine_volume = $engineVolume; return $this; } /** * Get engineVolume * * @return float */ public function getEngineVolume() { return $this->engine_volume; } /** * Set power * * @param integer $power * * @return ServiceVariation */ public function setPower($power) { $this->power = $power; return $this; } /** * Get power * * @return integer */ public function getPower() { return $this->power; } /** * Set yearFrom * * @param integer $yearFrom * * @return ServiceVariation */ public function setYearFrom($yearFrom) { $this->year_from = $yearFrom; return $this; } /** * Get yearFrom * * @return integer */ public function getYearFrom() { return $this->year_from; } /** * Set yearTo * * @param integer $yearTo * * @return ServiceVariation */ public function setYearTo($yearTo) { $this->year_to = $yearTo; return $this; } /** * Get yearTo * * @return integer */ public function getYearTo() { return $this->year_to; } /** * Set transmissionStepCount * * @param integer $transmissionStepCount * * @return ServiceVariation */ public function setTransmissionStepCount($transmissionStepCount) { $this->transmission_step_count = $transmissionStepCount; return $this; } /** * Get transmissionStepCount * * @return integer */ public function getTransmissionStepCount() { return $this->transmission_step_count; } /** * Set uid1c * * @param string $uid1c * * @return ServiceVariation */ public function setUid1c($uid1c) { $this->uid_1c = $uid1c; return $this; } /** * Get uid1c * * @return string */ public function getUid1c() { return $this->uid_1c; } /** * Set model * * @param Model $model * * @return ServiceVariation */ public function setModel(Model $model = null) { $this->model = $model; return $this; } /** * Get model * * @return Model */ public function getModel() { return $this->model; } /** * Set dealer * * @param Dealer $dealer * * @return ServiceVariation */ public function setDealer(Dealer $dealer = null) { $this->dealer = $dealer; return $this; } /** * Get dealer * * @return Dealer */ public function getDealer() { return $this->dealer; } /** * @var FuelTypes */ private $fuelType; /** * @var DriveUnitTypes */ private $driveUnit; /** * @var TransmissionTypes */ private $transmissionType; /** * Set fuelType * * @param FuelTypes $fuelType * * @return ServiceVariation */ public function setFuelType(FuelTypes $fuelType = null) { $this->fuelType = $fuelType; return $this; } /** * Get fuelType * * @return FuelTypes */ public function getFuelType() { return $this->fuelType; } /** * Set driveUnit * * @param DriveUnitTypes $driveUnit * * @return ServiceVariation */ public function setDriveUnit(DriveUnitTypes $driveUnit = null) { $this->driveUnit = $driveUnit; return $this; } /** * Get driveUnit * * @return DriveUnitTypes */ public function getDriveUnit() { return $this->driveUnit; } /** * Set transmissionType * * @param TransmissionTypes $transmissionType * * @return ServiceVariation */ public function setTransmissionType(TransmissionTypes $transmissionType = null) { $this->transmissionType = $transmissionType; return $this; } /** * Get transmissionType * * @return TransmissionTypes */ public function getTransmissionType() { return $this->transmissionType; } /** * @var Collection */ private $works; /** * Constructor */ public function __construct() { $this->works = new ArrayCollection(); } /** * Add work * * @param ServiceWork $work * * @return ServiceVariation */ public function addWork(ServiceWork $work) { $this->works[] = $work; return $this; } /** * Remove work * * @param ServiceWork $work */ public function removeWork(ServiceWork $work) { $this->works->removeElement($work); } /** * Get works * * @return Collection */ public function getWorks() { return $this->works; } /** * @var string */ private $engineName; /** * @var DateTime */ private $saleForm; /** * @var DateTime */ private $saleTo; /** * Set engineName * * @param string $engineName * * @return ServiceVariation */ public function setEngineName($engineName) { $this->engineName = $engineName; return $this; } /** * Get engineName * * @return string */ public function getEngineName() { return $this->engineName; } /** * Set saleForm * * @param DateTime $saleForm * * @return ServiceVariation */ public function setSaleForm($saleForm) { $this->saleForm = $saleForm; return $this; } /** * Get saleForm * * @return DateTime */ public function getSaleForm() { return $this->saleForm; } /** * Set saleTo * * @param DateTime $saleTo * * @return ServiceVariation */ public function setSaleTo($saleTo) { $this->saleTo = $saleTo; return $this; } /** * Get saleTo * * @return DateTime */ public function getSaleTo() { return $this->saleTo; } /** * @var string */ private $image_hash; /** * @var Media */ private $image; /** * Set imageHash * * @param string $imageHash * * @return ServiceVariation */ public function setImageHash($imageHash) { $this->image_hash = $imageHash; return $this; } /** * Get imageHash * * @return string */ public function getImageHash() { return $this->image_hash; } /** * Set image * * @param Media $image * * @return ServiceVariation */ public function setImage(Media $image = null) { $this->image = $image; return $this; } /** * Get image * * @return Media */ public function getImage() { return $this->image; } /** * @var integer */ private $is_delete; /** * Set isDelete * * @param integer $isDelete * * @return ServiceVariation */ public function setIsDelete($isDelete) { $this->is_delete = $isDelete; return $this; } /** * Get isDelete * * @return integer */ public function getIsDelete() { return $this->is_delete; } /** * @var string */ private $emission; /** * Set emission * * @param string $emission * * @return ServiceVariation */ public function setEmission($emission) { $this->emission = $emission; return $this; } /** * Get emission * * @return string */ public function getEmission() { return $this->emission; } /** * @var string */ private $description; /** * Set description * * @param string $description * * @return ServiceVariation */ public function setDescription($description) { $this->description = $description; return $this; } /** * Get description * * @return string */ public function getDescription() { return $this->description; } /** * @var Collection */ private $service_works; /** * Add serviceWork * * @param ServiceWork $serviceWork * * @return ServiceVariation */ public function addServiceWork(ServiceWork $serviceWork) { $this->service_works[] = $serviceWork; return $this; } /** * Remove serviceWork * * @param ServiceWork $serviceWork */ public function removeServiceWork(ServiceWork $serviceWork) { $this->service_works->removeElement($serviceWork); } /** * Get serviceWorks * * @return Collection */ public function getServiceWorks() { return $this->service_works; }}