2022-01-09 03:49:51 +08:00
|
|
|
<?php
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace Database\Orm;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use Database\Traits\Builder;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Trait Condition
|
|
|
|
|
* @package Database\Orm
|
|
|
|
|
*/
|
|
|
|
|
trait Condition
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
2023-12-12 15:35:35 +08:00
|
|
|
use Builder;
|
2022-01-09 03:49:51 +08:00
|
|
|
|
2023-12-12 15:35:35 +08:00
|
|
|
/**
|
|
|
|
|
* @param $query
|
|
|
|
|
* @return string
|
|
|
|
|
* @throws
|
|
|
|
|
*/
|
|
|
|
|
public function getWhere($query): string
|
|
|
|
|
{
|
|
|
|
|
return $this->where($query);
|
|
|
|
|
}
|
2022-01-09 03:49:51 +08:00
|
|
|
}
|