mirror of
https://github.com/jbcr/core.git
synced 2026-04-02 14:22:22 +02:00
29 lines
612 B
PHP
29 lines
612 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Bolt\Storage;
|
|
|
|
use Doctrine\ORM\QueryBuilder;
|
|
|
|
/**
|
|
* Interface that defines minimum functionality of a Bolt Query class.
|
|
*
|
|
* The goal of a query is to store select and filter parameters that can be
|
|
* used to create a relevant SQL expression.
|
|
*/
|
|
interface QueryInterface
|
|
{
|
|
/**
|
|
* Builds the query and returns an instance of QueryBuilder.
|
|
*/
|
|
public function build(): QueryBuilder;
|
|
|
|
/**
|
|
* Returns the current instance of QueryBuilder.
|
|
*/
|
|
public function getQueryBuilder(): QueryBuilder;
|
|
|
|
public function __toString(): string;
|
|
}
|