Namespace and ClassPath rewrites
This commit is contained in:
19
Core/Objects/Search/SearchQuery.class.php
Normal file
19
Core/Objects/Search/SearchQuery.class.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Core\Objects\Search;
|
||||
|
||||
class SearchQuery {
|
||||
|
||||
private string $query;
|
||||
private array $parts;
|
||||
|
||||
public function __construct(string $query) {
|
||||
$this->query = $query;
|
||||
$this->parts = array_unique(array_filter(explode(" ", strtolower($query))));
|
||||
}
|
||||
|
||||
public function getQuery(): string {
|
||||
return $this->query;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user