nineskeletor/src/Entity/Menuchild.php

146 lines
2.5 KiB
PHP

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Menu.
*
* @ORM\Table(name="menuchild")
* @ORM\Entity(repositoryClass="App\Repository\MenuchildRepository")
*/
class Menuchild
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string")
*/
private $childtype;
/**
* @ORM\Column(type="integer")
*/
private $roworder;
/**
* @ORM\ManyToOne(targetEntity="Menu", inversedBy="menuchilds")
*/
private $menu;
/**
* @ORM\ManyToOne(targetEntity="Blog", inversedBy="menuchilds")
*/
private $blog;
/**
* @ORM\ManyToOne(targetEntity="Page", inversedBy="menuchilds")
*/
private $page;
/**
* @ORM\ManyToOne(targetEntity="Blogtype", inversedBy="menuchilds")
*/
private $blogtype;
/**
* @ORM\ManyToOne(targetEntity="Pagetype", inversedBy="menuchilds")
*/
private $pagetype;
public function getId(): ?int
{
return $this->id;
}
public function getChildtype(): ?string
{
return $this->childtype;
}
public function setChildtype(string $childtype): self
{
$this->childtype = $childtype;
return $this;
}
public function getRoworder(): ?int
{
return $this->roworder;
}
public function setRoworder(int $roworder): self
{
$this->roworder = $roworder;
return $this;
}
public function getMenu(): ?Menu
{
return $this->menu;
}
public function setMenu(?Menu $menu): self
{
$this->menu = $menu;
return $this;
}
public function getBlog(): ?Blog
{
return $this->blog;
}
public function setBlog(?Blog $blog): self
{
$this->blog = $blog;
return $this;
}
public function getPage(): ?Page
{
return $this->page;
}
public function setPage(?Page $page): self
{
$this->page = $page;
return $this;
}
public function getBlogtype(): ?Blogtype
{
return $this->blogtype;
}
public function setBlogtype(?Blogtype $blogtype): self
{
$this->blogtype = $blogtype;
return $this;
}
public function getPagetype(): ?Pagetype
{
return $this->pagetype;
}
public function setPagetype(?Pagetype $pagetype): self
{
$this->pagetype = $pagetype;
return $this;
}
}