<?php
namespace App\Entity\Api;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\PageRepository")
* @ApiResource(
* collectionOperations={"get"},
* itemOperations={"get"})
* @ApiFilter(SearchFilter::class, properties={"name":"partial", "seoId":"exact","site":"exact","lang":"exact"})
*
*/
class Page {
/**
* @ORM\Id
* @ORM\Column(type="integer")
*/
protected $id;
/**
* @ORM\Column(type="string", length=200)
*/
protected $name;
/**
* @ORM\Column(name="title", type="string", length=200)
*/
protected $title;
/**
* @ORM\Column(type="string", length=200, nullable = true)
*/
protected $linkName;
/**
* @ORM\Column(type="string", nullable = true)
*/
protected $lvl;
/**
* @ORM\Column(type="integer", nullable = true)
*/
protected $sortOrder;
/**
* @ORM\Column(type="string", length=255, nullable = true)
*/
protected $seoId;
/**
* @ORM\Column(name="content", type="text", length=10000, nullable = true)
*/
protected $content;
/**
* @ORM\Column(type="string", length=100, nullable = true)
*/
protected $status;
/**
* @ORM\Column(type="string", nullable = true)
*/
protected $lang;
/**
* @ORM\Column(type="integer", nullable = true)
*/
protected $parentId;
private $pageBlocks;
/**
* @ORM\Column(type="string", length=255, nullable = true)
*/
protected $icon;
/**
* @ORM\Column(type="string", length=2000, nullable = true)
*/
protected $teaser;
/**
* @ORM\Column(type="array", nullable=true)
*/
protected $site;
protected $block;
protected $statistic;
protected $menuCrumbs;
protected $menuSubpages;
public function setId(int $id): self
{
$this->id = $id;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getLinkName(): ?string
{
return $this->linkName;
}
public function setLinkName(?string $linkName): self
{
$this->linkName = $linkName;
return $this;
}
public function getLvl(): ?int
{
return $this->lvl;
}
public function setLvl(?int $lvl): self
{
$this->lvl = $lvl;
return $this;
}
public function getSortOrder(): ?int
{
return $this->sortOrder;
}
public function setSortOrder(?int $sortOrder): self
{
$this->sortOrder = $sortOrder;
return $this;
}
public function getSeoId(): ?string
{
return $this->seoId;
}
public function setSeoId(?string $seoId): self
{
$this->seoId = $seoId;
return $this;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(?string $content): self
{
$this->content = $content;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getLang(): ?string
{
return $this->lang;
}
public function setLang(?string $lang): self
{
$this->lang = $lang;
return $this;
}
public function getParentId(): ?int
{
return $this->parentId;
}
public function setParentId(?int $parentId): self
{
$this->parentId = $parentId;
return $this;
}
public function getIcon(): ?string
{
return $this->icon;
}
public function setIcon(?string $icon): self
{
$this->icon = $icon;
return $this;
}
public function getTeaser(): ?string
{
return $this->teaser;
}
public function setTeaser(?string $teaser): self
{
$this->teaser = $teaser;
return $this;
}
/**
* Get the value of site
*/
public function getSite()
{
return $this->site;
}
/**
* Set the value of site
*
* @return self
*/
public function setSite($site)
{
$this->site = $site;
return $this;
}
/**
* Get the value of block
*/
public function getBlock()
{
return $this->block;
}
/**
* Set the value of block
*
* @return self
*/
public function setBlock($block)
{
$this->block = $block;
return $this;
}
/**
* Get the value of statistic
*/
public function getStatistic()
{
return $this->statistic;
}
/**
* Set the value of statistic
*
* @return self
*/
public function setStatistic($statistic)
{
$this->statistic = $statistic;
return $this;
}
/**
* Get the value of menuCrumbs
*/
public function getMenuCrumbs()
{
return $this->menuCrumbs;
}
/**
* Set the value of menuCrumbs
*
* @return self
*/
public function setMenuCrumbs($menuCrumbs)
{
$this->menuCrumbs = $menuCrumbs;
return $this;
}
/**
* Get the value of menuSubpages
*/
public function getMenuSubpages()
{
return $this->menuSubpages;
}
/**
* Set the value of menuSubpages
*
* @return self
*/
public function setMenuSubpages($menuSubpages)
{
$this->menuSubpages = $menuSubpages;
return $this;
}
}