private function prepare($sql, array $params)
    {
        $statement = $this->connection->prepare($sql);
        foreach ($params as $key => $value) {
            $statement->bindValue($key, $value);
        }

        return $statement;
    }
private function prepare($sql, array $params)
    {
        $statement = $this->connection->prepare($sql);
        foreach ($params as $key => $value) {
            $statement->bindValue($key, $value);
        }

        return $statement;
    }
private function prepare ( $ sql , array $ params ) { $ statement = $ this -> connection -> prepare ( $ sql ) ; foreach ( $ params as $ key => $ value ) { $ statement -> bindValue ( $ key , $ value ) ; } return $ statement ; }
Prepare given statement

@param string $sql
@param array  $params

@return Statement
Prepare given statement