src/Entity/Main/ApiOrderPages.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ApiOrderPages
  6.  *
  7.  * @ORM\Table(name="api_order_pages")
  8.  * @ORM\Entity(repositoryClass="App\Repository\Main\ApiOrderPagesRepository")
  9.  */
  10. class ApiOrderPages
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      *
  22.      * @ORM\ManyToOne(targetEntity=ApiPages::class)
  23.      */
  24.     private $page ;
  25.     /**
  26.      *
  27.      * @ORM\ManyToOne(targetEntity=ApiMenu::class)
  28.      */
  29.     private $menu;
  30.     /**
  31.      * @var int
  32.      *
  33.      * @ORM\Column(name="order_page", type="integer")
  34.      */
  35.     private $order;
  36.     /**
  37.      * @var \ApiPages|null
  38.      * @ORM\ManyToOne(targetEntity=ApiPages::class)
  39.      * @ORM\JoinColumn(name="parent_id", referencedColumnName="id", nullable=true)
  40.      */
  41.     private $parentId;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getPage(): ?ApiPages
  47.     {
  48.         return $this->page;
  49.     }
  50.     public function setPage(?ApiPages $page): self
  51.     {
  52.         $this->page $page;
  53.         return $this;
  54.     }
  55.     public function getMenu(): ?ApiMenu
  56.     {
  57.         return $this->menu;
  58.     }
  59.     public function setMenu(?ApiMenu $menu): self
  60.     {
  61.         $this->menu $menu;
  62.         return $this;
  63.     }
  64.     public function getOrder(): ?int
  65.     {
  66.         return $this->order;
  67.     }
  68.     public function setOrder(int $order): self
  69.     {
  70.         $this->order $order;
  71.         return $this;
  72.     }
  73.     public function getParentId(): ?ApiPages
  74.     {
  75.         return $this->parentId;
  76.     }
  77.     public function setParentId($parentId): self
  78.     {
  79.         $this->parentId $parentId;
  80.         return $this;
  81.     }
  82. }