2022-01-09 03:49:51 +08:00
|
|
|
<?php
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace Database\Condition;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use JetBrains\PhpStorm\Pure;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class DefaultCondition
|
|
|
|
|
* @package Database\Condition
|
|
|
|
|
*/
|
|
|
|
|
class DefaultCondition extends Condition
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
#[Pure] public function builder(): string
|
|
|
|
|
{
|
2023-04-07 18:23:27 +08:00
|
|
|
return $this->column . ' ' . $this->opera . ' ' . addslashes($this->value);
|
2022-01-09 03:49:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|