/** * @param mixed $value * @param string $operator * @param bool $isColumn (optional) * * @return WhereStatement */ protected function addCondition($value, string $operator, bool $isColumn = false) : WhereStatement { if ($isColumn && is_string($value)) { $value = function ($expr) use($value) { $expr->column($value); }; } $this->sql->addWhereCondition($this->column, $value, $operator, $this->separator); return $this->statement; }