Think\Db\Builder::parseValue PHP Метод

parseValue() защищенный Метод

value分析
protected parseValue ( mixed $value, string $field = '' ) : string | array
$value mixed
$field string
Результат string | array
    protected function parseValue($value, $field = '')
    {
        if (is_string($value)) {
            $value = strpos($value, ':') === 0 && $this->query->isBind(substr($value, 1)) ? $value : $this->connection->quote($value);
        } elseif (is_array($value)) {
            $value = array_map([$this, 'parseValue'], $value);
        } elseif (is_bool($value)) {
            $value = $value ? '1' : '0';
        } elseif (is_null($value)) {
            $value = 'null';
        }
        return $value;
    }