protected function checkPreparation()
    {
        // must be prepared
        if (null === $this->prepared) {
            throw new RuntimeException(
                Message::get(Message::DB_STMT_NOTPREPARED),
                Message::DB_STMT_NOTPREPARED
            );
        }

        // close any previous resultset
        $this->closeResult();
    }
protected function checkPreparation()
    {
        // must be prepared
        if (null === $this->prepared) {
            throw new RuntimeException(
                Message::get(Message::DB_STMT_NOTPREPARED),
                Message::DB_STMT_NOTPREPARED
            );
        }

        // close any previous resultset
        $this->closeResult();
    }
protected function checkPreparation ( ) { // must be prepared if ( null === $ this -> prepared ) { throw new RuntimeException ( Message :: get ( Message :: DB_STMT_NOTPREPARED ) , Message :: DB_STMT_NOTPREPARED ) ; } // close any previous resultset $ this -> closeResult ( ) ; }
Throw exception if not prepared

@throws RuntimeException
@access protected
Throw exception if not prepared