<?
/**
 ** Simple abstract class.
 ** Usability of this class is under GPL.
 ** @author Eugene Panin, 
[email protected]
 **/
class SimpleObject {
        var $lastError = '';
        /**
         ** Gets the last error message.
         ** @returns string Returns last error message.
         ** @scope public
         **/
        function getError() {
                return $this->lastError;
        }
        /**
         ** Sets current error message.
         ** @returns void
         ** @scope protected
         **/
        function setError($newVal='') {
                $this->lastError = $newVal;
        }
}
?>