Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
HtmlNodeBase | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Html; |
6 | |
7 | use DOMNode; |
8 | use PeServer\Core\Html\HtmlDocument; |
9 | |
10 | abstract class HtmlNodeBase |
11 | { |
12 | #region variable |
13 | |
14 | /** |
15 | */ |
16 | protected readonly HtmlDocument $document; |
17 | |
18 | /** |
19 | * 生で使用する現在データ。 |
20 | */ |
21 | protected readonly DOMNode $currentNode; |
22 | |
23 | #endregion |
24 | |
25 | protected function __construct(HtmlDocument $document, DOMNode $currentNode) |
26 | { |
27 | $this->document = $document; |
28 | $this->currentNode = $currentNode; |
29 | } |
30 | } |