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
ClosePath
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\Path;
6
7/**
8 * `Z` / `z` — close the current sub-path with a straight line back to its
9 * starting point. The two case forms are semantically equivalent per SVG 2;
10 * `$absolute` is preserved only so round-tripping is faithful.
11 */
12final class ClosePath implements PathCommand
13{
14    public function __construct(public readonly bool $absolute) {}
15}