public function set($name, $value)
    {
        if (isset($this->locked[$name])) {
            throw new LockedItemException($name);
        }

        $this->items[$name] = $value;
    }
public function set($name, $value)
    {
        if (isset($this->locked[$name])) {
            throw new LockedItemException($name);
        }

        $this->items[$name] = $value;
    }
public function set ( $ name , $ value ) { if ( isset ( $ this -> locked [ $ name ] ) ) { throw new LockedItemException ( $ name ) ; } $ this -> items [ $ name ] = $ value ; }
Sets a item by name.

@param string $name
@param mixed  $value

@return LockBox
Sets a item by name .