芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/vendor/veewee/xml/src/Xml/Dom/Xpath.php
$configurators */ public static function fromDocument(Document $document, callable ... $configurators): self { return new self( configure(...$configurators)(new DOMXPath($document->toUnsafeDocument())) ); } /** * @param list
$configurators * @throws RuntimeException * @throws InvalidArgumentException */ public static function fromUnsafeNode(DOMNode $node, callable ... $configurators): self { return self::fromDocument( Document::fromUnsafeDocument( detect_document($node) ), ...$configurators ); } /** * @template T * @param callable(DOMXpath): T $locator * * @return T * @throws RuntimeException */ public function locate(callable $locator) { return $locator($this->xpath); } /** * @throws RuntimeException * @return NodeList
*/ public function query(string $expression, DOMNode $contextNode = null): NodeList { return $this->locate(query($expression, $contextNode)); } /** * @throws RuntimeException * @throws InvalidArgumentException */ public function querySingle(string $expression, DOMNode $contextNode = null): DOMNode { return $this->locate(query_single($expression, $contextNode)); } /** * @template T * * @param TypeInterface
$type * * @return T * @throws RuntimeException */ public function evaluate(string $expression, TypeInterface $type, DOMNode $contextNode = null) { return $this->locate(evaluate($expression, $type, $contextNode)); } }