xref: /plugin/struct/_test/mock/QueryBuilder.php (revision 150f5bc933a51e9c38dc84fe05d936cf95f358e1)
18c551fd7SAndreas Gohr<?php
28c551fd7SAndreas Gohr
38c551fd7SAndreas Gohrnamespace dokuwiki\plugin\struct\test\mock;
48c551fd7SAndreas Gohr
50549dcc5SAndreas Gohruse dokuwiki\plugin\struct\meta;
68c551fd7SAndreas Gohr
70549dcc5SAndreas Gohrclass QueryBuilder extends meta\QueryBuilder
80549dcc5SAndreas Gohr{
98c551fd7SAndreas Gohr    public $from;
102b5df26eSAndreas Gohr
1140bdf4fdSAndreas Gohr    /**
1240bdf4fdSAndreas Gohr     * for debugging where statements
1340bdf4fdSAndreas Gohr     *
1440bdf4fdSAndreas Gohr     * @return array ($sql, $opts)
1540bdf4fdSAndreas Gohr     */
160549dcc5SAndreas Gohr    public function getWhereSQL()
170549dcc5SAndreas Gohr    {
18*150f5bc9SAnna Dabrowska        return [$this->filters()->toSQL(), array_values($this->values)];
1940bdf4fdSAndreas Gohr    }
208c551fd7SAndreas Gohr}
21