mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
f11e855047
* Added basic structures and test coverage * Added most of the test coverage * Added more test coverage * Codestyle fixes * Fixed static analysis * ANother static analysis fix * Codestyle fixes * Fixed version constraints * Added missing annotations * Use class context * Added more test coverage * Codestyle fixes * Added experimental mentioning
45 lines
850 B
PHP
45 lines
850 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Predis package.
|
|
*
|
|
* (c) 2009-2020 Daniele Alessandri
|
|
* (c) 2021-2025 Till Krüss
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Predis\Command\Argument\Search\HybridSearch\Combine;
|
|
|
|
use Predis\Command\Argument\ArrayableArgument;
|
|
|
|
abstract class BaseCombine implements ArrayableArgument
|
|
{
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $arguments = ['COMBINE'];
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $as = [];
|
|
|
|
/**
|
|
* @param string $alias
|
|
* @return $this
|
|
*/
|
|
public function as(string $alias): self
|
|
{
|
|
array_push($this->as, 'YIELD_SCORE_AS', $alias);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
abstract public function toArray(): array;
|
|
}
|