src/OfficeBrain/Bundle/ServiceGroupBundle/Entity/ServiceGroupLanguage.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\ServiceGroupBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ServiceGroupLanguage.
  6.  *
  7.  * @ORM\Table("tbl_service_group_language")
  8.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\ServiceGroupBundle\Entity\ServiceGroupLanguageRepository")
  9.  */
  10. class ServiceGroupLanguage
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="bigint", options={"unsigned":true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\ManyToOne(targetEntity="ServiceGroup", inversedBy="languageMapping")
  24.      * @ORM\JoinColumn(name="service_group_id")
  25.      */
  26.     private $serviceGroup;
  27.     /**
  28.      * @var string
  29.      *
  30.      *
  31.      * @ORM\Column(name="group_name", type="string", length=255)
  32.      */
  33.     public $groupName;
  34.     /**
  35.      * @var int
  36.      *
  37.      * @ORM\Column(name="language_id", type="bigint", options={"unsigned":true})
  38.      */
  39.     public $languageId;
  40.     /**
  41.      * Get id.
  42.      *
  43.      * @return int
  44.      */
  45.     public function getId()
  46.     {
  47.         return $this->id;
  48.     }
  49.     /**
  50.      * Set serviceGroup.
  51.      *
  52.      * @param int $serviceGroup
  53.      *
  54.      * @return ServiceGroupLanguage
  55.      */
  56.     public function setServiceGroup($serviceGroup)
  57.     {
  58.         $this->serviceGroup $serviceGroup;
  59.         return $this;
  60.     }
  61.     /**
  62.      * Get serviceGroup.
  63.      *
  64.      * @return int
  65.      */
  66.     public function getServiceGroup()
  67.     {
  68.         return $this->serviceGroup;
  69.     }
  70.     /**
  71.      * Set groupName.
  72.      *
  73.      * @param string $groupName
  74.      *
  75.      * @return ServiceGroupLanguage
  76.      */
  77.     public function setGroupName($groupName)
  78.     {
  79.         $this->groupName $groupName;
  80.         return $this;
  81.     }
  82.     /**
  83.      * Get groupName.
  84.      *
  85.      * @return string
  86.      */
  87.     public function getGroupName()
  88.     {
  89.         return $this->groupName;
  90.     }
  91.     /**
  92.      * Set languageId.
  93.      *
  94.      * @param int $languageId
  95.      *
  96.      * @return ServiceGroupLanguage
  97.      */
  98.     public function setLanguageId($languageId)
  99.     {
  100.         $this->languageId $languageId;
  101.         return $this;
  102.     }
  103.     /**
  104.      * Get languageId.
  105.      *
  106.      * @return int
  107.      */
  108.     public function getLanguageId()
  109.     {
  110.         return $this->languageId;
  111.     }
  112. }