PdfDictionary
in package
implements
Serializable
Represents a PDF dictionary object: << /Key value ... >>
Keys are plain strings (no leading slash needed; added during serialization). Values may be any Serializable, scalar int/float/bool, or null.
Table of Contents
Interfaces
- Serializable
- Contract for anything that can emit raw PDF syntax via `toPdf()`.
Properties
- $entries : array<string|int, mixed>
Methods
- __construct() : mixed
- get() : mixed
- Get an entry value by key.
- has() : bool
- Check whether a key exists.
- set() : self
- Set or replace an entry. Returns $this for fluent chaining.
- toPdf() : string
Properties
$entries
public
array<string|int, mixed>
$entries
= []
Methods
__construct()
public
__construct([array<string, mixed> $entries = [] ]) : mixed
Parameters
- $entries : array<string, mixed> = []
get()
Get an entry value by key.
public
get(string $key) : mixed
Parameters
- $key : string
has()
Check whether a key exists.
public
has(string $key) : bool
Parameters
- $key : string
Return values
boolset()
Set or replace an entry. Returns $this for fluent chaining.
public
set(string $key, mixed $value) : self
Parameters
- $key : string
- $value : mixed
Return values
selftoPdf()
public
toPdf() : string