1
0
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:
Dan Brown
2024-10-03 19:27:03 +01:00
parent 93c677a6a9
commit cd84d08157
5 changed files with 154 additions and 116 deletions

View File

@@ -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
{