src/CoreBundle/Entity/Vehicles/VehicleFile.php line 8

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity\Vehicles;
  3. /**
  4.  * VehicleFile
  5.  */
  6. class VehicleFile
  7. {
  8.     /**
  9.      * @var integer
  10.      */
  11.     private $id;
  12.     /**
  13.      * @var string
  14.      */
  15.     private $title_ru;
  16.     /**
  17.      * @var string
  18.      */
  19.     private $title_ua;
  20.     /**
  21.      * @var string
  22.      */
  23.     private $path;
  24.     /**
  25.      * @var Vehicle
  26.      */
  27.     private $vehicle;
  28.     /**
  29.      * @var integer
  30.      */
  31.     private $position;
  32.     /**
  33.      * Get id
  34.      *
  35.      * @return integer
  36.      */
  37.     public function getId()
  38.     {
  39.         return $this->id;
  40.     }
  41.     /**
  42.      * Set titleRu
  43.      *
  44.      * @param string $titleRu
  45.      *
  46.      * @return VehicleFile
  47.      */
  48.     public function setTitleRu($titleRu)
  49.     {
  50.         $this->title_ru $titleRu;
  51.         return $this;
  52.     }
  53.     /**
  54.      * Get titleRu
  55.      *
  56.      * @return string
  57.      */
  58.     public function getTitleRu()
  59.     {
  60.         return $this->title_ru;
  61.     }
  62.     /**
  63.      * Set titleUa
  64.      *
  65.      * @param string $titleUa
  66.      *
  67.      * @return VehicleFile
  68.      */
  69.     public function setTitleUa($titleUa)
  70.     {
  71.         $this->title_ua $titleUa;
  72.         return $this;
  73.     }
  74.     /**
  75.      * Get titleUa
  76.      *
  77.      * @return string
  78.      */
  79.     public function getTitleUa()
  80.     {
  81.         return $this->title_ua;
  82.     }
  83.     public function getTitle($locale)
  84.     {
  85.         return $locale == 'ru' $this->title_ru $this->title_ua;
  86.     }
  87.     /**
  88.      * Set path
  89.      *
  90.      * @param string $path
  91.      *
  92.      * @return VehicleFile
  93.      */
  94.     public function setPath($path)
  95.     {
  96.         $this->path $path;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get path
  101.      *
  102.      * @return string
  103.      */
  104.     public function getPath()
  105.     {
  106.         return $this->path;
  107.     }
  108.     /**
  109.      * Set vehicle
  110.      *
  111.      * @param Vehicle $vehicle
  112.      *
  113.      * @return VehicleFile
  114.      */
  115.     public function setVehicle(Vehicle $vehicle null)
  116.     {
  117.         $this->vehicle $vehicle;
  118.         return $this;
  119.     }
  120.     /**
  121.      * Get vehicle
  122.      *
  123.      * @return Vehicle
  124.      */
  125.     public function getVehicle()
  126.     {
  127.         return $this->vehicle;
  128.     }
  129.     /**
  130.      * Set position
  131.      *
  132.      * @param integer $position
  133.      *
  134.      * @return VehicleFile
  135.      */
  136.     public function setPosition($position)
  137.     {
  138.         $this->position $position;
  139.         return $this;
  140.     }
  141.     /**
  142.      * Get position
  143.      *
  144.      * @return integer
  145.      */
  146.     public function getPosition()
  147.     {
  148.         return $this->position;
  149.     }
  150. }