Your IP : 216.73.216.68


Current Path : /home/jeromecohp/www/tmp/yooessentials/modules/core/src/
Upload File :
Current File : /home/jeromecohp/www/tmp/yooessentials/modules/core/src/DatabaseQuery.php

<?php
/**
 * @package   Essentials YOOtheme Pro (Freemium) 1.6.8
 * @author    ZOOlanders https://www.zoolanders.com
 * @copyright Copyright (C) Joolanders, SL
 * @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
 */

namespace ZOOlanders\YOOessentials;

use YOOtheme\Database;

interface DatabaseQuery
{
    public function createForDatabase(Database $database): self;

    public function select($fields = '*'): self;
    public function from($table): self;
    public function leftJoin($table, $firstColumn, $operator = '=', $secondColumn = null): self;
    public function where($column, $operator = '=', $value = null): self;
    public function whereRaw($query, $glue = 'AND'): self;
    public function whereIn($column, $values): self;
    public function limit($limit): self;
    public function offset($offset): self;
    public function orderBy(string $field, string $direction = 'ASC'): self;

    public function get(): array;
}