1 | <?php |
||
7 | class HtmlNode |
||
8 | { |
||
9 | /** @var \DOMElement */ |
||
10 | protected $node; |
||
11 | |||
12 | /** |
||
13 | * @param \DOMElement $node |
||
14 | * |
||
15 | * @return static |
||
16 | */ |
||
17 | public static function create(DOMElement $node) |
||
21 | |||
22 | public function __construct(DOMElement $node) |
||
26 | |||
27 | /** |
||
28 | * @param void |
||
29 | * |
||
30 | * @return \DOMElement |
||
31 | */ |
||
32 | public function getNode(): DOMElement |
||
36 | |||
37 | /** |
||
38 | * @param void |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getHtml(): string |
||
46 | |||
47 | /** |
||
48 | * @param void |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getHtmlAndUpdateHref(string $href): string |
||
56 | } |
||
57 |