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
ImageStampStyle
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\Pdf\Toolkit\Stamper;
6
7/**
8 * Style configuration for image and PDF stamps.
9 *
10 * Dimensions are in PDF points (1/72 inch). If only one of width/height
11 * is set, the other is calculated from the source aspect ratio.
12 * If neither is set, the source dimensions are used at 72 DPI.
13 */
14final readonly class ImageStampStyle
15{
16    public function __construct(
17        public ?float $width = null,
18        public ?float $height = null,
19        public float $opacity = 1.0,
20    ) {}
21}