yii\sphinx\MatchExpression::andMatch PHP Метод

andMatch() публичный Метод

The new condition and the existing one will be joined using the 'AND' (' ') operator.
См. также: match()
См. также: orMatch()
public andMatch ( string | array | yii\db\Expression $condition, array $params = [] )
$condition string | array | yii\db\Expression the new MATCH condition. Please refer to [[match()]] on how to specify this parameter.
$params array the parameters (name => value) to be parsed into the query.
    public function andMatch($condition, $params = [])
    {
        if ($this->match === null) {
            $this->match = $condition;
        } else {
            $this->match = ['and', $this->match, $condition];
        }
        $this->addParams($params);
        return $this;
    }