Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| TextMatch | |
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\Pdf\Toolkit; |
| 6 | |
| 7 | /** |
| 8 | * A single text search match within a PDF. |
| 9 | */ |
| 10 | final class TextMatch |
| 11 | { |
| 12 | public function __construct( |
| 13 | /** @var int 1-based page number */ |
| 14 | public readonly int $pageNumber, |
| 15 | public readonly string $text, |
| 16 | /** @var int Character offset within the page text */ |
| 17 | public readonly int $offset, |
| 18 | ) {} |
| 19 | } |