Property | Type | Description | |
---|---|---|---|
$_key | Terms key. | ||
$_terms | Terms. |
Method | Description | |
---|---|---|
__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. |
public __construct ( string $key = '', array $terms = [] ) | ||
$key | string | OPTIONAL Terms key |
$terms | array | OPTIONAL Terms list |
public setMinimumMatch ( integer | string $minimum ) | ||
$minimum | integer | string | Minimum value |