1 | <?php |
||||
2 | |||||
3 | namespace Psonic\Commands\Search; |
||||
4 | |||||
5 | use Psonic\Commands\Command; |
||||
6 | |||||
7 | final class SuggestCommand extends Command |
||||
8 | { |
||||
9 | private $command = 'SUGGEST'; |
||||
10 | private $parameters = []; |
||||
11 | |||||
12 | /** |
||||
13 | * SuggestCommand constructor. |
||||
14 | * @param string $collection |
||||
15 | * @param string $bucket |
||||
16 | * @param string $terms |
||||
17 | * @param null $limit |
||||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||||
18 | */ |
||||
19 | public function __construct(string $collection, string $bucket, string $terms, $limit = null) |
||||
20 | { |
||||
21 | $this->parameters = [ |
||||
22 | 'collection' => $collection, |
||||
23 | 'bucket' => $bucket, |
||||
24 | 'terms' => self::wrapInQuotes($terms), |
||||
0 ignored issues
–
show
The method
Psonic\Commands\Command::wrapInQuotes() is not static, but was called statically.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
25 | 'limit' => $limit ? "LIMIT($limit)" : null, |
||||
0 ignored issues
–
show
|
|||||
26 | ]; |
||||
27 | |||||
28 | parent::__construct($this->command, $this->parameters); |
||||
29 | } |
||||
30 | } |