|
@@ -46,15 +46,6 @@ class Link
|
|
$this->currentUri = $currentUri;
|
|
$this->currentUri = $currentUri;
|
|
}
|
|
}
|
|
|
|
|
|
- protected function setNode(\DOMNode $node)
|
|
|
|
- {
|
|
|
|
- if ('a' != $node->nodeName) {
|
|
|
|
- throw new \LogicException(sprintf('Unable to click on a "%s" tag.', $node->nodeName));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- $this->node = $node;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Gets the node associated with this link.
|
|
* Gets the node associated with this link.
|
|
*
|
|
*
|
|
@@ -65,6 +56,18 @@ class Link
|
|
return $this->node;
|
|
return $this->node;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Gets the method associated with this link.
|
|
|
|
+ *
|
|
|
|
+ * @return string The method
|
|
|
|
+ *
|
|
|
|
+ * @api
|
|
|
|
+ */
|
|
|
|
+ public function getMethod()
|
|
|
|
+ {
|
|
|
|
+ return $this->method;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Gets the URI associated with this link.
|
|
* Gets the URI associated with this link.
|
|
*
|
|
*
|
|
@@ -105,15 +108,12 @@ class Link
|
|
return $this->node->getAttribute('href');
|
|
return $this->node->getAttribute('href');
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * Gets the method associated with this link.
|
|
|
|
- *
|
|
|
|
- * @return string The method
|
|
|
|
- *
|
|
|
|
- * @api
|
|
|
|
- */
|
|
|
|
- public function getMethod()
|
|
|
|
|
|
+ protected function setNode(\DOMNode $node)
|
|
{
|
|
{
|
|
- return $this->method;
|
|
|
|
|
|
+ if ('a' != $node->nodeName) {
|
|
|
|
+ throw new \LogicException(sprintf('Unable to click on a "%s" tag.', $node->nodeName));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $this->node = $node;
|
|
}
|
|
}
|
|
}
|
|
}
|