public function links()
{
$links = array();
foreach ($this->nodes as $node) {
if (!$node instanceof \DOMElement) {
throw new \InvalidArgumentException(sprintf('The current node list should contain only DOMElement instances, "%s" found.', get_class($node)));
}
$links[] = new Link($node, $this->baseHref, 'get');
}
return $links;
}