This commit is contained in:
2020-08-31 12:38:32 +08:00
parent 683a39dded
commit 65c443ec87
126 changed files with 7369 additions and 228 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace Database\Condition;
/**
* Class NotInCondition
* @package Database\Condition
*/
class NotInCondition extends Condition
{
/**
* @return string
*/
public function builder()
{
$format = array_filter($this->format($this->value));
if (empty($format)) {
return '';
}
return '`' . $this->column . '` not in(' . implode(',', $format) . ')';
}
}