This commit is contained in:
Sobuno
2025-01-03 00:45:19 +01:00
parent 36ec1daf3a
commit e33e3cc40f
5 changed files with 31 additions and 22 deletions

View File

@@ -123,9 +123,14 @@ class OperatorQuerySearch implements SearchInterface
return implode(' ', $this->words);
}
public function getExcludedWordsAsString(): string
public function getWords(): array
{
return implode(' ', $this->prohibitedWords);
return $this->words;
}
public function getExcludedWords(): array
{
return $this->prohibitedWords;
}
/**
@@ -2826,16 +2831,6 @@ class OperatorQuerySearch implements SearchInterface
}
}
public function getWords(): array
{
return $this->words;
}
public function getExcludedWords(): array
{
return $this->prohibitedWords;
}
public function setDate(Carbon $date): void
{
$this->date = $date;

View File

@@ -38,9 +38,10 @@ interface SearchInterface
public function getModifiers(): Collection;
public function getOperators(): Collection;
public function getWords(): array;
public function getWordsAsString(): string;
public function getExcludedWordsAsString(): string;
public function getExcludedWords(): array;
public function hasModifiers(): bool;