public function add($key, $value, array $options=[]) {
		$this->ensureResourceObject();
		
		$this->resource->add($key, $value, $options);
	}
public function add($key, $value, array $options=[]) {
		$this->ensureResourceObject();
		
		$this->resource->add($key, $value, $options);
	}
public function add ( $ key , $ value , array $ options = [ ] ) { $ this -> ensureResourceObject ( ) ; $ this -> resource -> add ( $ key , $ value , $ options ) ; }
add key-value pairs to the resource's attributes

@param string $key
@param mixed  $value   objects will be converted using `get_object_vars()`
@param array  $options optional {@see ResourceDocument::$defaults}
add key - value pairs to the resource s attributes