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;
	}
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;
	}
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 ; }
Sets an object.

@param string $key Item key.
@param object $object Object instance.

@return $this
Sets an object .