aboutsummaryrefslogtreecommitdiff
path: root/src/Search/TrueExpr.php
blob: 5f25c7e5f93950bed3bb6c9b8402a8b4050d316a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php


namespace Micropoly\Search;


class TrueExpr implements SearchExpr
{
    public function toString(): string
    {
        return "<TrueExpr>";
    }

    public function toSQL(string $bindPrefix, bool $singleFTS): SQLSearchExpr
    {
        $sqlSearchExpr = new SQLSearchExpr();
        $sqlSearchExpr->sql = "1";
        return $sqlSearchExpr;
    }

    public function countFTSQueries(): int
    {
        return 0;
    }
}