Doctrine_Record::errorStack PHP Метод

errorStack() публичный Метод

assigns the ErrorStack or returns it if called without parameters
public errorStack ( $stack = null ) : void | Doctrine_Validator_ErrorStack
Результат void | Doctrine_Validator_ErrorStack returns the errorStack associated with this record
    public function errorStack($stack = null)
    {
        if ($stack !== null) {
            if (!$stack instanceof Doctrine_Validator_ErrorStack) {
                throw new Doctrine_Record_Exception('Argument should be an instance of Doctrine_Validator_ErrorStack.');
            }
            $this->_errorStack = $stack;
        } else {
            return $this->getErrorStack();
        }
    }