summaryrefslogtreecommitdiff
path: root/ext/dom/xpath.stub.php
blob: a7ea2bb7b02a50e170e410c41fb867dbf4e41ab8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

#if defined(LIBXML_XPATH_ENABLED)
class DOMXPath
{
    public function __construct(DOMDocument $doc, bool $registerNodeNS = true) {}

    /** @return mixed */
    public function evaluate(string $expr, ?DOMNode $context = null, bool $registerNodeNS = true) {}

    /** @return mixed */
    public function query(string $expr, ?DOMNode $context = null, bool $registerNodeNS = true) {}

    /** @return bool */
    public function registerNamespace(string $prefix, string $namespaceURI) {}

    /**
     * @param string|array $restrict
     * @return bool|null
     */
    public function registerPhpFunctions($restrict = null) {}
}
#endif