mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-22 10:14:24 +00:00
See https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/136
37 lines
550 B
PHP
37 lines
550 B
PHP
<?php
|
|
|
|
namespace Chill\MainBundle\Search\Model;
|
|
|
|
class Result
|
|
{
|
|
private float $relevance;
|
|
|
|
/**
|
|
* mixed an arbitrary result
|
|
*/
|
|
private $result;
|
|
|
|
/**
|
|
* @param float $relevance
|
|
* @param $result
|
|
*/
|
|
public function __construct(float $relevance, $result)
|
|
{
|
|
$this->relevance = $relevance;
|
|
$this->result = $result;
|
|
}
|
|
|
|
public function getRelevance(): float
|
|
{
|
|
return $this->relevance;
|
|
}
|
|
|
|
public function getResult()
|
|
{
|
|
return $this->result;
|
|
}
|
|
|
|
|
|
|
|
}
|