src/OfficeBrain/Bundle/CmsBundle/Entity/CmsMenuItemLanguage.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\CmsBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * CmsMenuItemlanguage.
  6.  *
  7.  * @ORM\Table("tbl_cms_menu_item_language")
  8.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\CmsBundle\Entity\CmsMenuItemLanguageRepository")
  9.  */
  10. class CmsMenuItemLanguage
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\ManyToOne(targetEntity="CmsMenuItem", inversedBy="languageMapping")
  24.      * @ORM\JoinColumn(name="item_id", referencedColumnName="id", onDelete="CASCADE")
  25.      */
  26.     private $itemId;
  27.     /**
  28.      * @var int
  29.      *
  30.      * @ORM\Column(name="language_id", type="integer")
  31.      */
  32.     private $languageId;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="item_label", type="string", length=255, nullable=true)
  37.      */
  38.     private $itemLabel;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  43.      */
  44.     private $title;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="url_target", type="text", nullable=true)
  49.      */
  50.     private $urlTarget;
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="url", type="text", nullable=true)
  55.      */
  56.     private $url;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="description", type="text", nullable=true)
  61.      */
  62.     private $description;
  63.     /**
  64.      * Get id.
  65.      *
  66.      * @return int
  67.      */
  68.     public function getId()
  69.     {
  70.         return $this->id;
  71.     }
  72.     /**
  73.      * Set itemId.
  74.      *
  75.      * @param int $itemId
  76.      *
  77.      * @return CmsMenuItemlanguage
  78.      */
  79.     public function setItemId($itemId)
  80.     {
  81.         $this->itemId $itemId;
  82.         return $this;
  83.     }
  84.     /**
  85.      * Get itemId.
  86.      *
  87.      * @return int
  88.      */
  89.     public function getItemId()
  90.     {
  91.         return $this->itemId;
  92.     }
  93.     /**
  94.      * Set languageId.
  95.      *
  96.      * @param int $languageId
  97.      *
  98.      * @return CmsMenuItemlanguage
  99.      */
  100.     public function setLanguageId($languageId)
  101.     {
  102.         $this->languageId $languageId;
  103.         return $this;
  104.     }
  105.     /**
  106.      * Get languageId.
  107.      *
  108.      * @return int
  109.      */
  110.     public function getLanguageId()
  111.     {
  112.         return $this->languageId;
  113.     }
  114.     /**
  115.      * Set itemLabel.
  116.      *
  117.      * @param string $itemLabel
  118.      *
  119.      * @return CmsMenuItemlanguage
  120.      */
  121.     public function setItemLabel($itemLabel)
  122.     {
  123.         $this->itemLabel $itemLabel;
  124.         return $this;
  125.     }
  126.     /**
  127.      * Get itemLabel.
  128.      *
  129.      * @return string
  130.      */
  131.     public function getItemLabel()
  132.     {
  133.         return $this->itemLabel;
  134.     }
  135.     /**
  136.      * Set title.
  137.      *
  138.      * @param string $title
  139.      *
  140.      * @return CmsMenuItemlanguage
  141.      */
  142.     public function setTitle($title)
  143.     {
  144.         $this->title $title;
  145.         return $this;
  146.     }
  147.     /**
  148.      * Get title.
  149.      *
  150.      * @return string
  151.      */
  152.     public function getTitle()
  153.     {
  154.         return $this->title;
  155.     }
  156.     /**
  157.      * Set url.
  158.      *
  159.      * @param string $url
  160.      *
  161.      * @return CmsMenuItemlanguage
  162.      */
  163.     public function setUrl($url)
  164.     {
  165.         $this->url $url;
  166.         return $this;
  167.     }
  168.     /**
  169.      * Get url.
  170.      *
  171.      * @return string
  172.      */
  173.     public function getUrl()
  174.     {
  175.         return $this->url;
  176.     }
  177.     /**
  178.      * Set description.
  179.      *
  180.      * @param string $description
  181.      *
  182.      * @return CmsMenuItemlanguage
  183.      */
  184.     public function setDescription($description)
  185.     {
  186.         $this->description $description;
  187.         return $this;
  188.     }
  189.     /**
  190.      * Get description.
  191.      *
  192.      * @return string
  193.      */
  194.     public function getDescription()
  195.     {
  196.         return $this->description;
  197.     }
  198.     /**
  199.      * Set urlTarget
  200.      *
  201.      * @param string $urlTarget
  202.      *
  203.      * @return CmsMenuItemLanguage
  204.      */
  205.     public function setUrlTarget($urlTarget)
  206.     {
  207.         $this->urlTarget $urlTarget;
  208.         return $this;
  209.     }
  210.     /**
  211.      * Get urlTarget
  212.      *
  213.      * @return string
  214.      */
  215.     public function getUrlTarget()
  216.     {
  217.         return $this->urlTarget;
  218.     }
  219. }