2021-11-23 14:08:50 +01:00

52 lines
903 B
PHP

<?php
/**
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Chill\MainBundle\Search;
use Symfony\Component\Serializer\Annotation as Serializer;
class SearchApiResult
{
private float $pertinence;
private float $relevance;
private $result;
public function __construct(float $relevance)
{
$this->relevance = $relevance;
}
/**
* @Serializer\Groups({"read"})
*/
public function getRelevance(): float
{
return $this->relevance;
}
/**
* @Serializer\Groups({"read"})
*/
public function getResult()
{
return $this->result;
}
public function setResult($result): self
{
$this->result = $result;
return $this;
}
}