public function lock($id, $value, array $parameters = array())
    {
        $id = ltrim($id, '\\');

        $obj = $this->set($id, $value, $parameters);
        $this->offsetSet("lock.{$id}", true);

        return $obj;
    }
public function lock($id, $value, array $parameters = array())
    {
        $id = ltrim($id, '\\');

        $obj = $this->set($id, $value, $parameters);
        $this->offsetSet("lock.{$id}", true);

        return $obj;
    }
public function lock ( $ id , $ value , array $ parameters = array ( ) ) { $ id = ltrim ( $ id , '\\' ) ; $ obj = $ this -> set ( $ id , $ value , $ parameters ) ; $ this -> offsetSet ( "lock.{$id}" , true ) ; return $ obj ; }
Set a value and prevent modification to return value

@param string $id        The unique identifier for the parameter or object
@param mixed  $value     The value of the parameter or a closure to defined an object
@param array $parameters The default parameters to use when calling this object
@return self
Set a value and prevent modification to return value