Cleanup for Storage, move up one level in namespace

This commit is contained in:
Bob den Otter
2019-09-29 13:18:08 +02:00
parent d20386da8f
commit 9977cc33be
24 changed files with 68 additions and 58 deletions

View 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;
}