<?php/** * Product class represents model of WebMenu entity * * $Project: Alliancemarkets2 $ * $Id$ * * @package alliancemarkets2 * @author George Matyas <webexciter@yahoo.com> * @version $Revision$ */namespace App\Entity;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\EntityRepo\WebMenuRepo") * @ORM\Table(name="web_menu") */class WebMenu{ const MENUTYPE = array('MENUTYPE_MAIN' => 0, 'MENUTYPE_HORISONTAL' => 1, 'MENUTYPE_VERTICAL' => 2, 'MENUTYPE_TOP' => 3); /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $webMenuId=0; /** * @ORM\Column(type="string", length=255, nullable=true) */ protected $webMenuName; /** * @ORM\Column(type="text", nullable=true) */ protected $webMenuContentBefore; /** * @ORM\Column(type="text", nullable=true) */ protected $webMenuContentAfter; /** * @ORM\Column(type="integer", nullable=true) */ private $websiteId; /** * @ORM\Column(type="integer", nullable=true) */ protected $webMenuType = self::MENUTYPE['MENUTYPE_HORISONTAL']; public function getWebMenuId(): ?int { return $this->webMenuId; } public function getWebMenuName(): ?string { return $this->webMenuName; } public function setWebMenuName(?string $webMenuName): self { $this->webMenuName = $webMenuName; return $this; } public function getWebMenuContentBefore(): ?string { return $this->webMenuContentBefore; } public function setWebMenuContentBefore(?string $webMenuContentBefore): self { $this->webMenuContentBefore = $webMenuContentBefore; return $this; } public function getWebMenuContentAfter(): ?string { return $this->webMenuContentAfter; } public function setWebMenuContentAfter(?string $webMenuContentAfter): self { $this->webMenuContentAfter = $webMenuContentAfter; return $this; } public function getWebsiteId(): ?int { return $this->websiteId; } public function setWebsiteId(?int $websiteId): self { $this->websiteId = $websiteId; return $this; } public function getWebMenuType(): ?int { return $this->webMenuType; } public function setWebMenuType(?int $webMenuType): self { $this->webMenuType = $webMenuType; return $this; } }