Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| Node | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Svg; |
| 6 | |
| 7 | /** |
| 8 | * Base for every node in the typed SVG tree: elements, text content, |
| 9 | * comments. Nodes form a parent/child tree rooted at an `SvgDocument`. |
| 10 | * |
| 11 | * The tree is built by `Parser` and consumed by `svg-to-pdf` (or by any |
| 12 | * downstream library — sanitiser, format converter, animation extractor). |
| 13 | * Mutation is supported (`appendChild` / `removeChild`) for those uses; |
| 14 | * `Parser` itself never mutates after construction. |
| 15 | */ |
| 16 | abstract class Node |
| 17 | { |
| 18 | public ?Element $parent = null; |
| 19 | } |