src/Entity/MegaMenu.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\MegaMenuRepository")
  8.  */
  9. class MegaMenu
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     
  18.     /**
  19.      * @ORM\Column(type="string", length=150)
  20.      */
  21.     private $uuid;
  22.     /**
  23.      * @ORM\Column(type="string", length=4)
  24.      */
  25.     private $site_code;
  26.     /**
  27.      * @ORM\Column(type="string", length=100)
  28.      */
  29.     private $level;
  30.     /**
  31.      * @ORM\Column(type="integer", length=11)
  32.      */
  33.     private $position;
  34.     /**
  35.      * @ORM\Column(type="string", length=150)
  36.      */
  37.     private $parent;
  38.     /**
  39.      * @ORM\Column(type="string", length=100)
  40.      */
  41.     private $title;
  42.     /**
  43.      * @ORM\Column(type="string", length=255)
  44.      */
  45.     private $link;
  46.     /**
  47.      * @ORM\Column(type="integer", length=11)
  48.      */
  49.     private $status;
  50.     /**
  51.      * @ORM\Column(type="datetime")
  52.      */
  53.     private $date_added;
  54.     /**
  55.      * @ORM\Column(type="string", length=255)
  56.      */
  57.     private $altered_by;
  58.     
  59.     
  60.     public function __construct ()
  61.     {
  62.         $this->uuid ""//should be set automatically
  63.         $this->site_code "";
  64.         $this->level "";
  65.         $this->position 0;
  66.         $this->parent null;
  67.         $this->title "";
  68.         $this->link "";
  69.         $this->status 0;
  70.         $this->date_added = new \DateTime();
  71.         $this->altered_by "";
  72.     }
  73.     public function getId()
  74.     {
  75.         return $this->id;
  76.     }
  77.     
  78.     public function getUuid(): string
  79.     {
  80.         return $this->uuid;
  81.     }
  82.     
  83.     public function setUuid (string $uuid null): self
  84.     {
  85.         $this->uuid $uuid $uuid "";
  86.         return $this;
  87.     }
  88.     public function getSiteCode(): string
  89.     {
  90.         return $this->site_code;
  91.     }
  92.     
  93.     public function setSiteCode (string $site_code null): self
  94.     {
  95.         $this->site_code $site_code $site_code "";
  96.         return $this;
  97.     }
  98.     public function getPosition(): int
  99.     {
  100.         return $this->position;
  101.     }
  102.     public function setPosition(int $position): self
  103.     {
  104.         $this->position $position;
  105.         return $this;
  106.     }
  107.     public function getParent(): string
  108.     {
  109.         return $this->parent;
  110.     }
  111.     
  112.     public function setParent (string $parent null): self
  113.     {
  114.         $this->parent $parent;
  115.         return $this;
  116.     }
  117.     public function getTitle(): string
  118.     {
  119.         return $this->title;
  120.     }
  121.     
  122.     public function setTitle (string $title null): self
  123.     {
  124.         $this->title $title $title "";
  125.         return $this;
  126.     }
  127.     public function getLink(): string
  128.     {
  129.         return $this->link;
  130.     }
  131.     
  132.     public function setLink (string $link null): self
  133.     {
  134.         $this->link $link $link "";
  135.         return $this;
  136.     }
  137.     public function getStatus(): int
  138.     {
  139.         return $this->status;
  140.     }
  141.     public function setStatus(int $status): self
  142.     {
  143.         $this->status $status;
  144.         return $this;
  145.     }
  146.     public function getDateAdded(): ?\DateTimeInterface
  147.     {
  148.         return $this->date_added;
  149.     }
  150.     public function setDateAdded(\DateTimeInterface $date_added): self
  151.     {
  152.         $this->date_added $date_added;
  153.         return $this;
  154.     }
  155.     public function getAlteredBy(): string
  156.     {
  157.         return $this->altered_by;
  158.     }
  159.     
  160.     public function setAlteredBy (string $altered_by null): self
  161.     {
  162.         $this->altered_by $altered_by;
  163.         return $this;
  164.     }
  165.     
  166.     public function __toString ()
  167.     {
  168.         return $this->getScore();
  169.     }
  170.     
  171. }