Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Pdf\Core;
6
7/**
8 * Contract for anything that can emit raw PDF syntax via `toPdf()`.
9 *
10 * Inline dictionaries (e.g., BorderStyle, TransitionDict) implement this
11 * directly — they serialize inside their parent and never get an object
12 * number. Top-level objects extend {@see PdfObject} instead, which adds
13 * indirect-object wrapping and registration with {@see File\ObjectRegistry}.
14 */
15interface Serializable
16{
17    public function toPdf(): string;
18}