You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
713 B
36 lines
713 B
<?php |
|
|
|
// SPDX-FileCopyrightText: 2022 Ondřej Mirtes |
|
// SPDX-License-Identifier: MIT |
|
// Based on https://github.com/phpstan/phpstan-src/blob/b2a9ba4b82d19b01f37eb983746f1840f1213851/stubs/dom.stub |
|
|
|
use Readability\JSLikeHTMLElement; |
|
|
|
class DOMDocument |
|
{ |
|
/** @var JSLikeHTMLElement|null */ |
|
public $documentElement; |
|
|
|
/** @var null */ |
|
public $ownerDocument; |
|
|
|
/** |
|
* @param string $name |
|
* @return DOMNodeList<JSLikeHTMLElement> |
|
*/ |
|
public function getElementsByTagName($name) {} |
|
} |
|
|
|
class DOMNode |
|
{ |
|
|
|
} |
|
|
|
class DOMElement extends DOMNode |
|
{ |
|
/** |
|
* @param string $name |
|
* @return DOMNodeList<JSLikeHTMLElement> |
|
*/ |
|
public function getElementsByTagName($name) {} |
|
}
|
|
|