src/DcSiteBundle/Entity/Job.php line 10

Open in your IDE?
  1. <?php
  2. namespace DcSiteBundle\Entity;
  3. use CoreBundle\Entity\Dealer;
  4. /**
  5.  * Job
  6.  */
  7. class Job
  8. {
  9.     /**
  10.      * @var integer
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var string
  15.      */
  16.     private $name_ru;
  17.     /**
  18.      * @var string
  19.      */
  20.     private $name_ua;
  21.     /**
  22.      * @var Dealer
  23.      */
  24.     private $dealer;
  25.     /**
  26.      * Get id
  27.      *
  28.      * @return integer
  29.      */
  30.     public function getId()
  31.     {
  32.         return $this->id;
  33.     }
  34.     /**
  35.      * Set nameRu
  36.      *
  37.      * @param string $nameRu
  38.      *
  39.      * @return Job
  40.      */
  41.     public function setNameRu($nameRu)
  42.     {
  43.         $this->name_ru $nameRu;
  44.         return $this;
  45.     }
  46.     /**
  47.      * Get nameRu
  48.      *
  49.      * @return string
  50.      */
  51.     public function getNameRu()
  52.     {
  53.         return $this->name_ru;
  54.     }
  55.     /**
  56.      * Set nameUa
  57.      *
  58.      * @param string $nameUa
  59.      *
  60.      * @return Job
  61.      */
  62.     public function setNameUa($nameUa)
  63.     {
  64.         $this->name_ua $nameUa;
  65.         return $this;
  66.     }
  67.     /**
  68.      * Get nameUa
  69.      *
  70.      * @return string
  71.      */
  72.     public function getNameUa()
  73.     {
  74.         return $this->name_ua;
  75.     }
  76.     public function getNameByLocale($locale)
  77.     {
  78.         return $locale == 'ru' $this->name_ru $this->name_ua;
  79.     }
  80.     /**
  81.      * Set dealer
  82.      *
  83.      * @param Dealer $dealer
  84.      *
  85.      * @return Job
  86.      */
  87.     public function setDealer(Dealer $dealer null)
  88.     {
  89.         $this->dealer $dealer;
  90.         return $this;
  91.     }
  92.     /**
  93.      * Get dealer
  94.      *
  95.      * @return Dealer
  96.      */
  97.     public function getDealer()
  98.     {
  99.         return $this->dealer;
  100.     }
  101.     /**
  102.      * @return string
  103.      */
  104.     public function __toString()
  105.     {
  106.         return (string) $this->name_ru;
  107.     }
  108.     /**
  109.      * @var string
  110.      */
  111.     private $uid;
  112.     /**
  113.      * Set uid
  114.      *
  115.      * @param string $uid
  116.      *
  117.      * @return Job
  118.      */
  119.     public function setUid($uid)
  120.     {
  121.         $this->uid $uid;
  122.         return $this;
  123.     }
  124.     /**
  125.      * Get uid
  126.      *
  127.      * @return string
  128.      */
  129.     public function getUid()
  130.     {
  131.         return $this->uid;
  132.     }
  133. }