Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| TextElement | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Svg\Text; |
| 6 | |
| 7 | /** |
| 8 | * SVG `<text>` per SVG 2 §11. Named `TextElement` (not `Text`) so it |
| 9 | * doesn't shadow the leaf `Phpdftk\Svg\Text` data node used for `#text` |
| 10 | * children. Text content is reachable via `$this->children` — `Tspan` |
| 11 | * children and `Phpdftk\Svg\Text` data nodes interleave per spec. |
| 12 | */ |
| 13 | final class TextElement extends TextPositioningElement |
| 14 | { |
| 15 | public function __construct() |
| 16 | { |
| 17 | parent::__construct('text'); |
| 18 | } |
| 19 | } |