Compolomus/SQLQueryBuilder

View on GitHub
src/System/Traits/Where.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Compolomus\LSQLQueryBuilder\System\Traits;

use Compolomus\LSQLQueryBuilder\Parts\Where as Pwhere;

trait Where
{
    private $where;

    public function where(array $where = [], string $type = 'and'): Pwhere
    {
        $this->where = new Pwhere($where, $type);
        $this->where->setBase($this);
        return $this->where;
    }
}