| 1 | <?php |
||
| 21 | class BoostingQuery implements BuilderInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var BuilderInterface |
||
| 25 | */ |
||
| 26 | private $positive; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var BuilderInterface |
||
| 30 | */ |
||
| 31 | private $negative; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var int|float |
||
| 35 | */ |
||
| 36 | private $negativeBoost; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param BuilderInterface $positive |
||
| 40 | * @param BuilderInterface $negative |
||
| 41 | * @param int|float $negativeBoost |
||
| 42 | */ |
||
| 43 | public function __construct(BuilderInterface $positive, BuilderInterface $negative, $negativeBoost) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function getType() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | public function toArray() |
||
| 71 | } |
||
| 72 |