src/Entity/WebMenuItem.php line 22

Open in your IDE?
  1. <?php
  2. /**
  3.  * Service class represents simple model of WebMenuItem entity
  4.  *
  5.  * $Project: Alliancemarkets2 $
  6.  * $Id$
  7.  *
  8.  * @package alliancemarkets2
  9.  * @author George Matyas <webexciter@yahoo.com>
  10.  * @version $Revision$
  11.  */
  12. // src/AppBundle/Entity/WebMenuItem.php
  13. namespace App\Entity;
  14. use Doctrine\ORM\Mapping as ORM;
  15. /**
  16.  * @ORM\Entity(repositoryClass="App\EntityRepo\WebMenuItemRepo")
  17.  * @ORM\Table(name="web_menu_item")
  18.  */
  19. class WebMenuItem
  20. {
  21.     const ITEMTYPE = array('ITEMTYPE_INTERNALPAGELINK' => 0'ITEMTYPE_EXTERNALPAGELINK' => 1'ITEMTYPE_LABEL' => 2);
  22.     
  23.     /**
  24.      * @ORM\Column(type="integer")
  25.      * @ORM\Id
  26.      * @ORM\GeneratedValue(strategy="AUTO")
  27.      */ 
  28.     protected $webMenuItemId=0;
  29.     /**
  30.      * @ORM\Column(type="integer")
  31.      */     
  32.     protected $webMenuId=0;
  33.     
  34.     /**
  35.      * @ORM\Column(type="string", length=100, nullable=true)
  36.      */
  37.     protected $webMenuItemName;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     protected $webMenuItemURL;  
  42.  
  43.     /**
  44.      * @ORM\Column(type="string", length=100, nullable=true)
  45.      */
  46.     protected $webMenuItemCSS;    
  47.     
  48.     /**
  49.      * @ORM\Column(type="string", length=100, nullable=true)
  50.      */
  51.     protected $webMenuItemType self::ITEMTYPE['ITEMTYPE_INTERNALPAGELINK'];    
  52.      
  53.     /**
  54.      * @ORM\Column(type="integer", nullable=true)
  55.      */
  56.     protected $priority;    
  57.     
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     protected $imageURL;
  62.     public function getWebMenuItemId(): ?int
  63.     {
  64.         return $this->webMenuItemId;
  65.     }
  66.     public function getWebMenuId(): ?int
  67.     {
  68.         return $this->webMenuId;
  69.     }
  70.     public function setWebMenuId(int $webMenuId): static
  71.     {
  72.         $this->webMenuId $webMenuId;
  73.         return $this;
  74.     }
  75.     public function getWebMenuItemName(): ?string
  76.     {
  77.         return $this->webMenuItemName;
  78.     }
  79.     public function setWebMenuItemName(?string $webMenuItemName): static
  80.     {
  81.         $this->webMenuItemName $webMenuItemName;
  82.         return $this;
  83.     }
  84.     public function getWebMenuItemURL(): ?string
  85.     {
  86.         return $this->webMenuItemURL;
  87.     }
  88.     public function setWebMenuItemURL(?string $webMenuItemURL): static
  89.     {
  90.         $this->webMenuItemURL $webMenuItemURL;
  91.         return $this;
  92.     }
  93.     public function getWebMenuItemCSS(): ?string
  94.     {
  95.         return $this->webMenuItemCSS;
  96.     }
  97.     public function setWebMenuItemCSS(?string $webMenuItemCSS): static
  98.     {
  99.         $this->webMenuItemCSS $webMenuItemCSS;
  100.         return $this;
  101.     }
  102.     public function getWebMenuItemType(): ?string
  103.     {
  104.         return $this->webMenuItemType;
  105.     }
  106.     public function setWebMenuItemType(?string $webMenuItemType): static
  107.     {
  108.         $this->webMenuItemType $webMenuItemType;
  109.         return $this;
  110.     }
  111.     public function getPriority(): ?int
  112.     {
  113.         return $this->priority;
  114.     }
  115.     public function setPriority(?int $priority): static
  116.     {
  117.         $this->priority $priority;
  118.         return $this;
  119.     }
  120.     public function getImageURL(): ?string
  121.     {
  122.         return $this->imageURL;
  123.     }
  124.     public function setImageURL(?string $imageURL): static
  125.     {
  126.         $this->imageURL $imageURL;
  127.         return $this;
  128.     }      
  129. }