<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\MegaMenuRepository")
*/
class MegaMenu
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=150)
*/
private $uuid;
/**
* @ORM\Column(type="string", length=4)
*/
private $site_code;
/**
* @ORM\Column(type="string", length=100)
*/
private $level;
/**
* @ORM\Column(type="integer", length=11)
*/
private $position;
/**
* @ORM\Column(type="string", length=150)
*/
private $parent;
/**
* @ORM\Column(type="string", length=100)
*/
private $title;
/**
* @ORM\Column(type="string", length=255)
*/
private $link;
/**
* @ORM\Column(type="integer", length=11)
*/
private $status;
/**
* @ORM\Column(type="datetime")
*/
private $date_added;
/**
* @ORM\Column(type="string", length=255)
*/
private $altered_by;
public function __construct ()
{
$this->uuid = ""; //should be set automatically
$this->site_code = "";
$this->level = "";
$this->position = 0;
$this->parent = null;
$this->title = "";
$this->link = "";
$this->status = 0;
$this->date_added = new \DateTime();
$this->altered_by = "";
}
public function getId()
{
return $this->id;
}
public function getUuid(): string
{
return $this->uuid;
}
public function setUuid (string $uuid = null): self
{
$this->uuid = $uuid ? $uuid : "";
return $this;
}
public function getSiteCode(): string
{
return $this->site_code;
}
public function setSiteCode (string $site_code = null): self
{
$this->site_code = $site_code ? $site_code : "";
return $this;
}
public function getPosition(): int
{
return $this->position;
}
public function setPosition(int $position): self
{
$this->position = $position;
return $this;
}
public function getParent(): string
{
return $this->parent;
}
public function setParent (string $parent = null): self
{
$this->parent = $parent;
return $this;
}
public function getTitle(): string
{
return $this->title;
}
public function setTitle (string $title = null): self
{
$this->title = $title ? $title : "";
return $this;
}
public function getLink(): string
{
return $this->link;
}
public function setLink (string $link = null): self
{
$this->link = $link ? $link : "";
return $this;
}
public function getStatus(): int
{
return $this->status;
}
public function setStatus(int $status): self
{
$this->status = $status;
return $this;
}
public function getDateAdded(): ?\DateTimeInterface
{
return $this->date_added;
}
public function setDateAdded(\DateTimeInterface $date_added): self
{
$this->date_added = $date_added;
return $this;
}
public function getAlteredBy(): string
{
return $this->altered_by;
}
public function setAlteredBy (string $altered_by = null): self
{
$this->altered_by = $altered_by;
return $this;
}
public function __toString ()
{
return $this->getScore();
}
}