Symfony\Component\DomCrawler\Link::__construct
Constructor.
Signature
public function __construct(DOMNode
$node,
[string
$currentUri = 'GET',
[string
$method = 'GET']] )
Parameters
$node
— \DOMNode- A \DOMNode instance
$currentUri
— string- The URI of the page where the link is embedded (or the base href)
$method
— string- The method to use for the link (get by default)
Errors/Exceptions
-
InvalidArgumentException
- if the node is not a link