FluentDOM\Node\Xpath::__invoke PHP Method

__invoke() public method

Allow to call evaluate() by using the node as object
public __invoke ( string $expression ) : mixed
$expression string
return mixed
    public function __invoke($expression)
    {
        return $this->evaluate($expression, $this instanceof \DOMNode ? $this : NULL);
    }