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
BookmarkEntry
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\Bookmark;
6
7/**
8 * A bookmark (outline item) for the toolkit API.
9 *
10 * Represents a single entry in the document outline tree.
11 * Page numbers are 1-based.
12 */
13final readonly class BookmarkEntry
14{
15    /**
16     * @param list<BookmarkEntry> $children
17     */
18    public function __construct(
19        public string $title,
20        public int $pageNumber,
21        public array $children = [],
22    ) {}
23}