original_string: public function lock($name)
      {
          if (!$this->has($name)) {
              throw new ItemNotFoundException($name);
          }
  
          $this->locked[$name] = true;
  
          return $this;
      }
code: public function lock($name)
      {
          if (!$this->has($name)) {
              throw new ItemNotFoundException($name);
          }
  
          $this->locked[$name] = true;
  
          return $this;
      }
code_tokens: public function lock ( $ name ) { if ( ! $ this -> has ( $ name ) ) { throw new ItemNotFoundException ( $ name ) ; } $ this -> locked [ $ name ] = true ; return $ this ; }
docstring: Locks an item.
  
  @param string $name
  
  @return LockBox
docstring_tokens: Locks an item .