public function lock($name)
    {
        if (!$this->has($name)) {
            throw new ItemNotFoundException($name);
        }

        $this->locked[$name] = true;

        return $this;
    }
public function lock($name)
    {
        if (!$this->has($name)) {
            throw new ItemNotFoundException($name);
        }

        $this->locked[$name] = true;

        return $this;
    }
public function lock ( $ name ) { if ( ! $ this -> has ( $ name ) ) { throw new ItemNotFoundException ( $ name ) ; } $ this -> locked [ $ name ] = true ; return $ this ; }
Locks an item.

@param string $name

@return LockBox
Locks an item .