Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Node

FunctionNode::__toStringpublicWC 1.0

Method of the class: FunctionNode{}

No Hooks.

Returns

null. Nothing (null).

Usage

$FunctionNode = new FunctionNode();
$FunctionNode->__toString(): string;

FunctionNode::__toString() code WC 10.5.0

public function __toString(): string
{
    $arguments = implode(', ', array_map(function (Token $token) {
        return "'".$token->getValue()."'";
    }, $this->arguments));

    return sprintf('%s[%s:%s(%s)]', $this->getNodeName(), $this->selector, $this->name, $arguments ? '['.$arguments.']' : '');
}