This commit is contained in:
2023-07-31 23:08:59 +08:00
parent 45d0712cb2
commit 00a2125efc
15 changed files with 1334 additions and 1612 deletions
+2 -12
View File
@@ -112,23 +112,13 @@ trait Builder
/**
* @param array $where
* @return string
* @throws NotFindClassException
* @throws ReflectionException
*/
*/
private function where(array $where): string
{
if (count($where) < 1) {
return '';
}
$_tmp = [];
foreach ($where as $key => $value) {
$_tmp[] = $this->resolveCondition($key, $value, $_tmp);
}
if (count($_tmp) > 0) {
return implode(' AND ', $_tmp);
} else {
return '';
}
return implode(' AND ', $where);
}
+761 -872
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -54,8 +54,8 @@ class When
/**
* @param string $alias
*/
public function else(string $alias)
{
public function else(string $alias): void
{
$this->else = $alias;
}