mirror of
https://github.com/jbcr/core.git
synced 2026-04-02 06:12:15 +02:00
Cleanup for Storage, move up one level in namespace
This commit is contained in:
28
src/Storage/QueryInterface.php
Normal file
28
src/Storage/QueryInterface.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user