src/base/Component.php
public function setOldAttribute($name, $value)
    {
        if (isset($this->_oldAttributes[$name]) || $this->hasAttribute($name)) {
            $this->_oldAttributes[$name] = $value;
        } else {
            throw new InvalidParamException(get_class($this).' has no attribute named "'.$name.'".');
        }
    }
public function setOldAttribute($name, $value)
    {
        if (isset($this->_oldAttributes[$name]) || $this->hasAttribute($name)) {
            $this->_oldAttributes[$name] = $value;
        } else {
            throw new InvalidParamException(get_class($this).' has no attribute named "'.$name.'".');
        }
    }
public function setOldAttribute ( $ name , $ value ) { if ( isset ( $ this -> _oldAttributes [ $ name ] ) || $ this -> hasAttribute ( $ name ) ) { $ this -> _oldAttributes [ $ name ] = $ value ; } else { throw new InvalidParamException ( get_class ( $ this ) . ' has no attribute named "' . $ name . '".' ) ; } }
Sets the old value of the named attribute.
@param string $name the attribute name
@param mixed  $value the old attribute value.
@throws InvalidParamException if the named attribute does not exist.
@see hasAttribute()
Sets the old value of the named attribute .