src/Entity/WebMenu.php line 22

Open in your IDE?
  1. <?php
  2. /**
  3.  * Product class represents model of WebMenu entity
  4.  *
  5.  * $Project: Alliancemarkets2 $
  6.  * $Id$
  7.  *
  8.  * @package alliancemarkets2
  9.  * @author George Matyas <webexciter@yahoo.com>
  10.  * @version $Revision$
  11.  */
  12. namespace App\Entity;
  13. use Doctrine\DBAL\Types\Types;
  14. use Doctrine\ORM\Mapping as ORM;
  15. /**
  16.  * @ORM\Entity(repositoryClass="App\EntityRepo\WebMenuRepo")
  17.  * @ORM\Table(name="web_menu")
  18.  */
  19. class WebMenu
  20. {
  21.     const MENUTYPE = array('MENUTYPE_MAIN' => 0'MENUTYPE_HORISONTAL' => 1'MENUTYPE_VERTICAL' => 2'MENUTYPE_TOP' => 3);
  22.     
  23.     /**
  24.      * @ORM\Column(type="integer")
  25.      * @ORM\Id
  26.      * @ORM\GeneratedValue(strategy="AUTO")
  27.      */ 
  28.     protected $webMenuId=0;
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     protected $webMenuName;
  33.     
  34.     /**
  35.      * @ORM\Column(type="text", nullable=true)
  36.      */
  37.     protected $webMenuContentBefore;
  38.    
  39.     /**
  40.      * @ORM\Column(type="text", nullable=true)
  41.      */
  42.     protected $webMenuContentAfter;    
  43.     
  44.     /**
  45.      * @ORM\Column(type="integer", nullable=true)
  46.      */
  47.     private $websiteId;    
  48.     
  49.     /**
  50.      * @ORM\Column(type="integer", nullable=true)
  51.      */    
  52.     protected $webMenuType self::MENUTYPE['MENUTYPE_HORISONTAL'];
  53.     public function getWebMenuId(): ?int
  54.     {
  55.         return $this->webMenuId;
  56.     }
  57.     public function getWebMenuName(): ?string
  58.     {
  59.         return $this->webMenuName;
  60.     }
  61.     public function setWebMenuName(?string $webMenuName): self
  62.     {
  63.         $this->webMenuName $webMenuName;
  64.         return $this;
  65.     }
  66.     public function getWebMenuContentBefore(): ?string
  67.     {
  68.         return $this->webMenuContentBefore;
  69.     }
  70.     public function setWebMenuContentBefore(?string $webMenuContentBefore): self
  71.     {
  72.         $this->webMenuContentBefore $webMenuContentBefore;
  73.         return $this;
  74.     }
  75.     public function getWebMenuContentAfter(): ?string
  76.     {
  77.         return $this->webMenuContentAfter;
  78.     }
  79.     public function setWebMenuContentAfter(?string $webMenuContentAfter): self
  80.     {
  81.         $this->webMenuContentAfter $webMenuContentAfter;
  82.         return $this;
  83.     }
  84.     public function getWebsiteId(): ?int
  85.     {
  86.         return $this->websiteId;
  87.     }
  88.     public function setWebsiteId(?int $websiteId): self
  89.     {
  90.         $this->websiteId $websiteId;
  91.         return $this;
  92.     }
  93.     public function getWebMenuType(): ?int
  94.     {
  95.         return $this->webMenuType;
  96.     }
  97.     public function setWebMenuType(?int $webMenuType): self
  98.     {
  99.         $this->webMenuType $webMenuType;
  100.         return $this;
  101.     }          
  102. }