aboutsummaryrefslogtreecommitdiff
path: root/app/Models/BooleanSearch.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/BooleanSearch.php')
-rw-r--r--app/Models/BooleanSearch.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Models/BooleanSearch.php b/app/Models/BooleanSearch.php
index 7b3cc0e12..720cbf78e 100644
--- a/app/Models/BooleanSearch.php
+++ b/app/Models/BooleanSearch.php
@@ -422,6 +422,11 @@ class FreshRSS_BooleanSearch implements \Stringable {
}
/** @param FreshRSS_BooleanSearch|FreshRSS_Search $search */
+ public function prepend(FreshRSS_BooleanSearch|FreshRSS_Search $search): void {
+ array_unshift($this->searches, $search);
+ }
+
+ /** @param FreshRSS_BooleanSearch|FreshRSS_Search $search */
public function add(FreshRSS_BooleanSearch|FreshRSS_Search $search): void {
$this->searches[] = $search;
}