public function addBindingValue(string $key, $value): string
    {
        $key = $this->removeTableFromKey($key);
        $placeholder = ':' . $key;
        if (!isset($this->bindingValues[$key])) {
            $this->bindingValues[$key] = $value;
            $this->bindingValueCounts[$key] = 1;
            return $placeholder;
        }

        $placeholder .= $this->bindingValueCounts[$key];
        $this->bindingValueCounts[$key]++;
        $this->bindingValues[$placeholder] = $value;
        return $placeholder;
    }
public function addBindingValue(string $key, $value): string
    {
        $key = $this->removeTableFromKey($key);
        $placeholder = ':' . $key;
        if (!isset($this->bindingValues[$key])) {
            $this->bindingValues[$key] = $value;
            $this->bindingValueCounts[$key] = 1;
            return $placeholder;
        }

        $placeholder .= $this->bindingValueCounts[$key];
        $this->bindingValueCounts[$key]++;
        $this->bindingValues[$placeholder] = $value;
        return $placeholder;
    }
public function addBindingValue ( string $ key , $ value ) : string { $ key = $ this -> removeTableFromKey ( $ key ) ; $ placeholder = ':' . $ key ; if ( ! isset ( $ this -> bindingValues [ $ key ] ) ) { $ this -> bindingValues [ $ key ] = $ value ; $ this -> bindingValueCounts [ $ key ] = 1 ; return $ placeholder ; } $ placeholder .= $ this -> bindingValueCounts [ $ key ] ; $ this -> bindingValueCounts [ $ key ] ++ ; $ this -> bindingValues [ $ placeholder ] = $ value ; return $ placeholder ; }
Adds a value which will be used to prepare the SQL statement.
Returns the placeholder name to use in SQL statement.

@param string $key
@param mixed $value
@return string The placeholder name.
Adds a value which will be used to prepare the SQL statement . Returns the placeholder name to use in SQL statement .