mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Search: Added exact/filter/tag term negation support
This commit is contained in:
@@ -4,10 +4,13 @@ namespace BookStack\Search;
|
||||
|
||||
use BookStack\Search\Options\SearchOption;
|
||||
|
||||
/**
|
||||
* @template T of SearchOption
|
||||
*/
|
||||
class SearchOptionSet
|
||||
{
|
||||
/**
|
||||
* @var SearchOption[]
|
||||
* @var T[]
|
||||
*/
|
||||
protected array $options = [];
|
||||
|
||||
@@ -52,7 +55,7 @@ class SearchOptionSet
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SearchOption[]
|
||||
* @return T[]
|
||||
*/
|
||||
public function all(): array
|
||||
{
|
||||
@@ -60,7 +63,7 @@ class SearchOptionSet
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SearchOption[]
|
||||
* @return T[]
|
||||
*/
|
||||
public function negated(): array
|
||||
{
|
||||
|
Reference in New Issue
Block a user