Files
kiri-core/Database/Orm/Condition.php
T

30 lines
340 B
PHP
Raw Normal View History

2020-08-31 12:38:32 +08:00
<?php
2020-10-29 18:17:25 +08:00
declare(strict_types=1);
2020-08-31 12:38:32 +08:00
namespace Database\Orm;
2020-12-17 14:12:44 +08:00
2021-02-25 18:32:02 +08:00
use Database\Traits\Builder;
2020-08-31 12:38:32 +08:00
use Exception;
/**
* Trait Condition
* @package Database\Orm
*/
trait Condition
{
2021-02-25 16:43:40 +08:00
use Builder;
2021-02-24 18:34:57 +08:00
2020-08-31 12:38:32 +08:00
/**
2021-02-25 16:43:40 +08:00
* @param $query
2021-02-24 18:34:57 +08:00
* @return string
* @throws Exception
*/
2021-02-25 16:43:40 +08:00
public function getWhere($query): string
2020-08-31 12:38:32 +08:00
{
2021-02-25 16:43:40 +08:00
return $this->where($query);
2020-08-31 12:38:32 +08:00
}
}