query builders create method
This commit is contained in:
@@ -33,6 +33,14 @@ class DeleteBuilder implements Builder
|
||||
{
|
||||
use SelectingBuilderTrait;
|
||||
|
||||
/**
|
||||
* Create an instance.
|
||||
*/
|
||||
public function create(): self
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a DELETE query.
|
||||
*/
|
||||
|
||||
@@ -35,6 +35,14 @@ class InsertBuilder implements Builder
|
||||
|
||||
protected $params = [];
|
||||
|
||||
/**
|
||||
* Create an instance.
|
||||
*/
|
||||
public function create(): self
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a INSERT query.
|
||||
*/
|
||||
|
||||
@@ -33,6 +33,14 @@ class LockTableBuilder implements Builder
|
||||
{
|
||||
use BaseBuilderTrait;
|
||||
|
||||
/**
|
||||
* Create an instance.
|
||||
*/
|
||||
public function create(): self
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a LOCK TABLE query.
|
||||
*/
|
||||
|
||||
@@ -39,6 +39,14 @@ class SelectBuilder implements Builder
|
||||
{
|
||||
use SelectingBuilderTrait;
|
||||
|
||||
/**
|
||||
* Create an instance.
|
||||
*/
|
||||
public function create(): self
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a SELECT query.
|
||||
*/
|
||||
|
||||
@@ -37,6 +37,14 @@ class UnionBuilder implements Builder
|
||||
{
|
||||
use BaseBuilderTrait;
|
||||
|
||||
/**
|
||||
* Create an instance.
|
||||
*/
|
||||
public function create(): self
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a UNION select query.
|
||||
*/
|
||||
|
||||
@@ -35,6 +35,14 @@ class UpdateBuilder implements Builder
|
||||
{
|
||||
use SelectingBuilderTrait;
|
||||
|
||||
/**
|
||||
* Create an instance.
|
||||
*/
|
||||
public function create(): self
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a UPDATE query.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user