src/Entity/Api/Sitemap.php line 18

Open in your IDE?
  1. <?php
  2. namespace  App\Entity\Api;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use ApiPlatform\Core\Annotation\ApiResource;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. use ApiPlatform\Core\Annotation\ApiFilter;
  7. use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
  8. /**
  9.  * @ORM\Entity()
  10.  * @ApiResource(
  11.  * collectionOperations={"get"},
  12.  * itemOperations={"get"})
  13.  * @ApiFilter(SearchFilter::class, properties={"keyword":"partial","type":"exact","site":"exact","lang":"exact"})
  14.  */
  15. class Sitemap {
  16.    
  17.     /**
  18.      * @ORM\Id
  19.      * @ORM\Column(type="string")
  20.      */
  21.     protected $id;
  22.     /**
  23.      * @ORM\Column(type="string", length=200)
  24.      */
  25.     protected $name;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable = true)
  28.      */
  29.     protected $seoId;
  30.      /**
  31.      * @ORM\Column(type="integer", nullable = true)
  32.      */
  33.     protected $parentId;
  34.      /**
  35.      * @ORM\Column(type="string", nullable = true)
  36.      */
  37.     protected $lang;
  38.      /**
  39.      * @ORM\Column(type="string", nullable = true)
  40.      */
  41.     protected $site;
  42.    
  43.     /**
  44.      * Get the value of id
  45.      */ 
  46.     public function getId()
  47.     {
  48.         return $this->id;
  49.     }
  50.     /**
  51.      * Set the value of id
  52.      *
  53.      * @return  self
  54.      */ 
  55.     public function setId($id)
  56.     {
  57.         $this->id $id;
  58.         return $this;
  59.     }
  60.     /**
  61.      * Get the value of name
  62.      */ 
  63.     public function getName()
  64.     {
  65.         return $this->name;
  66.     }
  67.     /**
  68.      * Set the value of name
  69.      *
  70.      * @return  self
  71.      */ 
  72.     public function setName($name)
  73.     {
  74.         $this->name $name;
  75.         return $this;
  76.     }
  77.     /**
  78.      * Get the value of seoId
  79.      */ 
  80.     public function getSeoId()
  81.     {
  82.         return $this->seoId;
  83.     }
  84.     /**
  85.      * Set the value of seoId
  86.      *
  87.      * @return  self
  88.      */ 
  89.     public function setSeoId($seoId)
  90.     {
  91.         $this->seoId $seoId;
  92.         return $this;
  93.     }
  94.     /**
  95.      * Get the value of parentId
  96.      */ 
  97.     public function getParentId()
  98.     {
  99.         return $this->parentId;
  100.     }
  101.     /**
  102.      * Set the value of parentId
  103.      *
  104.      * @return  self
  105.      */ 
  106.     public function setParentId($parentId)
  107.     {
  108.         $this->parentId $parentId;
  109.         return $this;
  110.     }
  111.   
  112.     /**
  113.      * Get the value of lang
  114.      */ 
  115.     public function getLang()
  116.     {
  117.         return $this->lang;
  118.     }
  119.     /**
  120.      * Set the value of lang
  121.      *
  122.      * @return  self
  123.      */ 
  124.     public function setLang($lang)
  125.     {
  126.         $this->lang $lang;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Get the value of site
  131.      */ 
  132.     public function getSite()
  133.     {
  134.         return $this->site;
  135.     }
  136.     /**
  137.      * Set the value of site
  138.      *
  139.      * @return  self
  140.      */ 
  141.     public function setSite($site)
  142.     {
  143.         $this->site $site;
  144.         return $this;
  145.     }
  146. }