PHP Класс Elastica\Query\Terms

Наследование: extends AbstractQuery
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_key Terms key.
$_terms Terms.

Открытые методы

Метод Описание
__construct ( string $key = '', array $terms = [] ) Construct terms query.
addTerm ( string $term ) Adds a single term to the list.
setMinimumMatch ( integer | string $minimum ) Sets the minimum matching values.
setTerms ( string $key, array $terms ) Sets key and terms for the query.
toArray ( ) : array Converts the terms object to an array.

Описание методов

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

Construct terms query.
public __construct ( string $key = '', array $terms = [] )
$key string OPTIONAL Terms key
$terms array OPTIONAL Terms list

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

Adds a single term to the list.
public addTerm ( string $term )
$term string Term

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

Sets the minimum matching values.
public setMinimumMatch ( integer | string $minimum )
$minimum integer | string Minimum value

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

Sets key and terms for the query.
public setTerms ( string $key, array $terms )
$key string Terms key
$terms array Terms for the query.

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

Converts the terms object to an array.
См. также: Elastica\Query\AbstractQuery::toArray()
public toArray ( ) : array
Результат array Query array

Описание свойств

$_key защищенное свойство

Terms key.
protected $_key

$_terms защищенное свойство

Terms.
protected $_terms