<?php
/**
* Service class represents simple model of WebMenuItem entity
*
* $Project: Alliancemarkets2 $
* $Id$
*
* @package alliancemarkets2
* @author George Matyas <webexciter@yahoo.com>
* @version $Revision$
*/
// src/AppBundle/Entity/WebMenuItem.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\WebMenuItemRepo")
* @ORM\Table(name="web_menu_item")
*/
class WebMenuItem
{
const ITEMTYPE = array('ITEMTYPE_INTERNALPAGELINK' => 0, 'ITEMTYPE_EXTERNALPAGELINK' => 1, 'ITEMTYPE_LABEL' => 2);
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $webMenuItemId=0;
/**
* @ORM\Column(type="integer")
*/
protected $webMenuId=0;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $webMenuItemName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $webMenuItemURL;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $webMenuItemCSS;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $webMenuItemType = self::ITEMTYPE['ITEMTYPE_INTERNALPAGELINK'];
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $priority;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $imageURL;
public function getWebMenuItemId(): ?int
{
return $this->webMenuItemId;
}
public function getWebMenuId(): ?int
{
return $this->webMenuId;
}
public function setWebMenuId(int $webMenuId): static
{
$this->webMenuId = $webMenuId;
return $this;
}
public function getWebMenuItemName(): ?string
{
return $this->webMenuItemName;
}
public function setWebMenuItemName(?string $webMenuItemName): static
{
$this->webMenuItemName = $webMenuItemName;
return $this;
}
public function getWebMenuItemURL(): ?string
{
return $this->webMenuItemURL;
}
public function setWebMenuItemURL(?string $webMenuItemURL): static
{
$this->webMenuItemURL = $webMenuItemURL;
return $this;
}
public function getWebMenuItemCSS(): ?string
{
return $this->webMenuItemCSS;
}
public function setWebMenuItemCSS(?string $webMenuItemCSS): static
{
$this->webMenuItemCSS = $webMenuItemCSS;
return $this;
}
public function getWebMenuItemType(): ?string
{
return $this->webMenuItemType;
}
public function setWebMenuItemType(?string $webMenuItemType): static
{
$this->webMenuItemType = $webMenuItemType;
return $this;
}
public function getPriority(): ?int
{
return $this->priority;
}
public function setPriority(?int $priority): static
{
$this->priority = $priority;
return $this;
}
public function getImageURL(): ?string
{
return $this->imageURL;
}
public function setImageURL(?string $imageURL): static
{
$this->imageURL = $imageURL;
return $this;
}
}