<?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={})
* @ApiFilter(SearchFilter::class, properties={"keyword":"partial","type":"exact","site":"exact"})
*/
class Search {
/**
* @ORM\Id
* @ORM\Column(type="string")
*/
protected $id;
/**
* @ORM\Column(type="string", length=2000)
*/
protected $data;
/**
* @ORM\Column(type="string", length=200)
*/
protected $type;
/**
* @ORM\Column(type="string", length=200)
*/
protected $keyword;
/**
* @ORM\Column(type="array", nullable=true)
*/
protected $site;
/**
* Get the value of data
*/
public function getData()
{
return $this->data;
}
/**
* Set the value of data
*
* @return self
*/
public function setData($data)
{
$this->data = $data;
return $this;
}
/**
* 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 keyword
*/
public function getKeyword()
{
return $this->keyword;
}
/**
* Set the value of keyword
*
* @return self
*/
public function setKeyword($keyword)
{
$this->keyword = $keyword;
return $this;
}
/**
* Get the value of type
*/
public function getType()
{
return $this->type;
}
/**
* Set the value of type
*
* @return self
*/
public function setType($type)
{
$this->type = $type;
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;
}
}