src/Budkit/Session/Registry.php
final public function set($varname, $value)
    {

        //If its lock we can't edit
        if ($this->lock)
            return false;

        //Continue
        $previous = isset($this->data[$varname]) ? $this->data[$varname] : null;
        $this->data[$varname] = $value;

        //what to do with previous?

        return $this;
    }
final public function set($varname, $value)
    {

        //If its lock we can't edit
        if ($this->lock)
            return false;

        //Continue
        $previous = isset($this->data[$varname]) ? $this->data[$varname] : null;
        $this->data[$varname] = $value;

        //what to do with previous?

        return $this;
    }
final public function set ( $ varname , $ value ) { //If its lock we can't edit if ( $ this -> lock ) return false ; //Continue $ previous = isset ( $ this -> data [ $ varname ] ) ? $ this -> data [ $ varname ] : null ; $ this -> data [ $ varname ] = $ value ; //what to do with previous? return $ this ; }
Adds a value to the registry

@param type $varname
@param type $value
@return Registry
Adds a value to the registry