Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Script
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Svg;
6
7/**
8 * SVG 2 §15.2 — `<script>` element. Carries inline or external
9 * script content. Out of scope for static print rendering AND
10 * a security concern (per §17.3 the parser must not execute it);
11 * lifted to a typed class so the Translator can route it
12 * explicitly to "skip entirely" instead of recursing into any
13 * `<text>` etc. children it happens to contain.
14 *
15 * The element exposes no execution accessors — it's purely a
16 * skip-marker.
17 */
18final class Script extends Element
19{
20    public function __construct()
21    {
22        parent::__construct('script');
23    }
24}