web-base/Core/Objects/Search/SearchQuery.class.php

19 lines
340 B
PHP
Raw Normal View History

2022-08-20 22:17:17 +02:00
<?php
2022-11-18 18:06:46 +01:00
namespace Core\Objects\Search;
2022-08-20 22:17:17 +02:00
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;
}
}