code: public function historyOfElement($element, $id)
  	{
  		if ($element != 'node' && $element != 'way' && $element != 'relation')
  		{
  			throw new \DomainException('Element should be a node, a way or a relation');
  		}
  
  		// Set the API base
  		$base = $element . '/' . $id . '/history';
  
  		// Build the request path.
  		$path = $this->getOption('api.url') . $base;
  
  		// Send the request.
  		$xmlString = $this->sendRequest($path);
  
  		return $xmlString->$element;
  	}
docs: Method to get history of an element [node|way|relation]
  
  @param   string   $element  [node|way|relation]
  @param   integer  $id       Element identifier
  
  @return  array   The XML response
  
  @since   1.0
  @throws  \DomainException