private function pdoPrepare($sql)
    {
        try {
            $pdoStatement = $this->getPdo()->prepare($sql);
        } catch (\PDOException $e) {
            throw new \RuntimeException("Failed to prepare SQL query: {$sql} << {$e->getMessage()}", 0, $e);
        }

        return $pdoStatement;
    }
private function pdoPrepare($sql)
    {
        try {
            $pdoStatement = $this->getPdo()->prepare($sql);
        } catch (\PDOException $e) {
            throw new \RuntimeException("Failed to prepare SQL query: {$sql} << {$e->getMessage()}", 0, $e);
        }

        return $pdoStatement;
    }
private function pdoPrepare ( $ sql ) { try { $ pdoStatement = $ this -> getPdo ( ) -> prepare ( $ sql ) ; } catch ( \ PDOException $ e ) { throw new \ RuntimeException ( "Failed to prepare SQL query: {$sql} << {$e->getMessage()}" , 0 , $ e ) ; } return $ pdoStatement ; }
Prepares a PDO statement.

@param string $sql
@return \PDOStatement
@throws \RuntimeException
Prepares a PDO statement .