<?php
namespace App\Entity\Api;
use Doctrine\ORM\Mapping as ORM;
use ApiPlatform\Core\Annotation\ApiResource;
use Symfony\Component\Serializer\Annotation\Groups;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
/**
* @ORM\Entity()
* @ApiResource(
* collectionOperations={"get"},
* itemOperations={"get"})
* @ApiFilter(SearchFilter::class, properties={"keyword":"partial","type":"exact","site":"exact","lang":"exact"})
*/
class Sitemap {
/**
* @ORM\Id
* @ORM\Column(type="string")
*/
protected $id;
/**
* @ORM\Column(type="string", length=200)
*/
protected $name;
/**
* @ORM\Column(type="string", length=255, nullable = true)
*/
protected $seoId;
/**
* @ORM\Column(type="integer", nullable = true)
*/
protected $parentId;
/**
* @ORM\Column(type="string", nullable = true)
*/
protected $lang;
/**
* @ORM\Column(type="string", nullable = true)
*/
protected $site;
/**
* Get the value of id
*/
public function getId()
{
return $this->id;
}
/**
* Set the value of id
*
* @return self
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Get the value of name
*/
public function getName()
{
return $this->name;
}
/**
* Set the value of name
*
* @return self
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get the value of seoId
*/
public function getSeoId()
{
return $this->seoId;
}
/**
* Set the value of seoId
*
* @return self
*/
public function setSeoId($seoId)
{
$this->seoId = $seoId;
return $this;
}
/**
* Get the value of parentId
*/
public function getParentId()
{
return $this->parentId;
}
/**
* Set the value of parentId
*
* @return self
*/
public function setParentId($parentId)
{
$this->parentId = $parentId;
return $this;
}
/**
* Get the value of lang
*/
public function getLang()
{
return $this->lang;
}
/**
* Set the value of lang
*
* @return self
*/
public function setLang($lang)
{
$this->lang = $lang;
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;
}
}