protected function getPreparedStatement($name = null)
    {

        // try to load the prepared statement, or use the default one
        if (isset($this->preparedStatements[$name])) {
            return $this->preparedStatements[$name];
        }

        // return the first (default) prepared statement
        return reset($this->preparedStatements);
    }
protected function getPreparedStatement($name = null)
    {

        // try to load the prepared statement, or use the default one
        if (isset($this->preparedStatements[$name])) {
            return $this->preparedStatements[$name];
        }

        // return the first (default) prepared statement
        return reset($this->preparedStatements);
    }
protected function getPreparedStatement ( $ name = null ) { // try to load the prepared statement, or use the default one if ( isset ( $ this -> preparedStatements [ $ name ] ) ) { return $ this -> preparedStatements [ $ name ] ; } // return the first (default) prepared statement return reset ( $ this -> preparedStatements ) ; }
Return's the prepared statement.

@param string $name The name of the prepared statement to return

@return \PDOStatement The prepared statement
Return s the prepared statement .