<?php
namespace DcSiteBundle\Entity;
use Application\Sonata\MediaBundle\Entity\Media;
/**
 * TestDriveRoutes
 */
class TestDriveRoutes
{
    /**
     * @var int
     */
    private $id;
    /**
     * @var string
     */
    private $name_ru;
    /**
     * @var string
     */
    private $name_ua;
    /**
     * @var string
     */
    private $description_ru;
    /**
     * @var string
     */
    private $description_ua;
    /**
     * @var Media
     */
    private $image;
    /**
     * @var string
     */
    private $dealer;
    public function __toString()
    {
        return (string)$this->name_ru;
    }
    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }
    /**
     * Set name
     *
     * @param string $name
     *
     * @return TestDriveRoutes
     */
    public function setNameRu($name)
    {
        $this->name_ru = $name;
        return $this;
    }
    /**
     * Get name
     *
     * @return string
     */
    public function getNameRu()
    {
        return $this->name_ru;
    }
    /**
     * Set name
     *
     * @param string $name
     *
     * @return TestDriveRoutes
     */
    public function setNameUa($name)
    {
        $this->name_ua = $name;
        return $this;
    }
    /**
     * Get name
     *
     * @return string
     */
    public function getNameUa()
    {
        return $this->name_ua;
    }
    /**
     * Set description
     *
     * @param string $description
     *
     * @return TestDriveRoutes
     */
    public function setDescriptionRu($description)
    {
        $this->description_ru = $description;
        return $this;
    }
    /**
     * Get description
     *
     * @return string
     */
    public function getDescriptionRu()
    {
        return $this->description_ru;
    }
    /**
     * Set description
     *
     * @param string $description
     *
     * @return TestDriveRoutes
     */
    public function setDescriptionUa($description)
    {
        $this->description_ua = $description;
        return $this;
    }
    /**
     * Get description
     *
     * @return string
     */
    public function getDescriptionUa()
    {
        return $this->description_ua;
    }
    /**
     * Set image
     *
     * @param Media $image
     *
     * @return TestDriveRoutes
     */
    public function setImage($image)
    {
        $this->image = $image;
        return $this;
    }
    /**
     * Get image
     *
     * @return Media
     */
    public function getImage()
    {
        return $this->image;
    }
    /**
     * Set dealer
     *
     * @param string $dealer
     *
     * @return TestDriveRoutes
     */
    public function setDealer($dealer)
    {
        $this->dealer = $dealer;
        return $this;
    }
    /**
     * Get dealer
     *
     * @return string
     */
    public function getDealer()
    {
        return $this->dealer;
    }
    /**
     * @param string $locale
     * @return string
     */
    public function getNameByLocale($locale = 'ru')
    {
        return $locale === 'ru' ? $this->getNameRu() : $this->getNameUa();
    }
    /**
     * @param string $locale
     * @return string
     */
    public function getDescriptionByLocale($locale = 'ru')
    {
        return $locale === 'ru' ? $this->getDescriptionRu() : $this->getDescriptionUa();
    }
    /**
     * @var int|null
     */
    private $price;
    /**
     * @var int|null
     */
    private $time_way;
    /**
     * @var int|null
     */
    private $distance_way;
    /**
     * @var int|null
     */
    private $asphalt_way;
    /**
     * @var int|null
     */
    private $offroad_way;
    /**
     * Set price.
     *
     * @param int|null $price
     *
     * @return TestDriveRoutes
     */
    public function setPrice($price = null)
    {
        $this->price = $price;
        return $this;
    }
    /**
     * Get price.
     *
     * @return int|null
     */
    public function getPrice()
    {
        return $this->price;
    }
    /**
     * Set timeWay.
     *
     * @param int|null $timeWay
     *
     * @return TestDriveRoutes
     */
    public function setTimeWay($timeWay = null)
    {
        $this->time_way = $timeWay;
        return $this;
    }
    /**
     * Get timeWay.
     *
     * @return int|null
     */
    public function getTimeWay()
    {
        return $this->time_way;
    }
    /**
     * Set distanceWay.
     *
     * @param int|null $distanceWay
     *
     * @return TestDriveRoutes
     */
    public function setDistanceWay($distanceWay = null)
    {
        $this->distance_way = $distanceWay;
        return $this;
    }
    /**
     * Get distanceWay.
     *
     * @return int|null
     */
    public function getDistanceWay()
    {
        return $this->distance_way;
    }
    /**
     * Set asphaltWay.
     *
     * @param int|null $asphaltWay
     *
     * @return TestDriveRoutes
     */
    public function setAsphaltWay($asphaltWay = null)
    {
        $this->asphalt_way = $asphaltWay;
        return $this;
    }
    /**
     * Get asphaltWay.
     *
     * @return int|null
     */
    public function getAsphaltWay()
    {
        return $this->asphalt_way;
    }
    /**
     * Set offroadWay.
     *
     * @param int|null $offroadWay
     *
     * @return TestDriveRoutes
     */
    public function setOffroadWay($offroadWay = null)
    {
        $this->offroad_way = $offroadWay;
        return $this;
    }
    /**
     * Get offroadWay.
     *
     * @return int|null
     */
    public function getOffroadWay()
    {
        return $this->offroad_way;
    }
    /**
     * @var int
     */
    private $state;
    /**
     * Set state.
     *
     * @param int $state
     *
     * @return TestDriveRoutes
     */
    public function setState($state)
    {
        $this->state = $state;
        return $this;
    }
    /**
     * Get state.
     *
     * @return int
     */
    public function getState()
    {
        return $this->state > 0;
    }
}