src/Entity/Menu.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MenuRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMenuRepository::class)]
  6. #[ORM\Table(name'site_menu')]
  7. class Menu
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $url null;
  15.     #[ORM\Column]
  16.     private ?int $ord null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $controller null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $item null;
  21.     #[ORM\Column]
  22.     private ?int $user_logged null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getUrl(): ?string
  28.     {
  29.         return $this->url;
  30.     }
  31.     public function setUrl(string $url): self
  32.     {
  33.         $this->url $url;
  34.         return $this;
  35.     }
  36.     public function getOrd(): ?int
  37.     {
  38.         return $this->ord;
  39.     }
  40.     public function setOrd(int $ord): self
  41.     {
  42.         $this->ord $ord;
  43.         return $this;
  44.     }
  45.     public function getStatus(): ?int
  46.     {
  47.         return $this->status;
  48.     }
  49.     public function setStatus(int $status): self
  50.     {
  51.         $this->status $status;
  52.         return $this;
  53.     }
  54.     public function getController(): ?string
  55.     {
  56.         return $this->controller;
  57.     }
  58.     public function setController(string $controller): self
  59.     {
  60.         $this->controller $controller;
  61.         return $this;
  62.     }
  63.     public function getItem(): ?string
  64.     {
  65.         return $this->item;
  66.     }
  67.     public function setItem(string $item): self
  68.     {
  69.         $this->item $item;
  70.         return $this;
  71.     }
  72.     public function getUserLogged(): ?int
  73.     {
  74.         return $this->user_logged;
  75.     }
  76.     public function setUserLogged(int $user_logged): self
  77.     {
  78.         $this->user_logged $user_logged;
  79.         return $this;
  80.     }
  81. }