original_string: public function set($key, $object) {
  		
  		if (! is_object($object)) {
  			throw new \InvalidArgumentException("Registry only accepts objects, given: ".gettype($object));
  		}
  		
  		$this->_data[$key] = $object;
  		
  		return $this;
  	}
code: public function set($key, $object) {
  		
  		if (! is_object($object)) {
  			throw new \InvalidArgumentException("Registry only accepts objects, given: ".gettype($object));
  		}
  		
  		$this->_data[$key] = $object;
  		
  		return $this;
  	}
code_tokens: public function set ( $ key , $ object ) { if ( ! is_object ( $ object ) ) { throw new \ InvalidArgumentException ( "Registry only accepts objects, given: " . gettype ( $ object ) ) ; } $ this -> _data [ $ key ] = $ object ; return $ this ; }
docstring: Sets an object.
  
  @param string $key Item key.
  @param object $object Object instance.
  
  @return $this
docstring_tokens: Sets an object .