Class

Symfony\Component\CssSelector\Node\FunctionNode

class FunctionNode implements NodeInterface

FunctionNode represents a "selector:name(expr)" node.

This component is a port of the Python lxml library, which is copyright Infrae and distributed under the BSD license.

Methods

__construct(NodeInterface $selector, string $type, string $name, XPathExpr $expr)

Constructor.

string __toString()

Returns a string representation of the object.

XPathExpr toXpath()

Details

at line 42
public __construct(NodeInterface $selector, string $type, string $name, XPathExpr $expr)

Constructor.

Parameters

NodeInterface $selector The XPath expression
string $type
string $name
XPathExpr $expr

at line 53
public string __toString()

Returns a string representation of the object.

Return Value

string The string representation

at line 62
public XPathExpr toXpath()

Return Value

XPathExpr The XPath expression

Exceptions

ParseException When unknown operator is found