class final Core · roukmoute/pdf 0.6.1
PDF\Syntax\DocumentStructure\PageTree\PageTreeNodeMutable tree builder; children can belong to exactly one parent.Inheritance and contracts
Parent : PDF\Syntax\Object\DictionaryType
Interfaces : Countable, IteratorAggregate, PDF\Syntax\DocumentStructure\PageTree, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable
Construction
__construct()
public function __construct(PDF\Syntax\Object\DictionaryObject\Entry ...$inheritableEntries)Declared methods
addKid()
public function addKid(PDF\Syntax\DocumentStructure\PageTree\PageObject|self $kid): selfattachTo()
public function attachTo(self $parent): voidentries()
public function entries(): iterablekids()
public function kids(): array@return list<PageObject|self>pageCount()
public function pageCount(): intparent()
public function parent(): ?selfwith()
public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): staticwithout()
public function without(PDF\Syntax\Object\NameType|string $key): staticInherited methods
6 methods from parents and contracts
__toString()
public function __toString(): stringcount()
public function count(): intget()
public function get(PDF\Syntax\Object\NameType|string $key): ?PDF\Syntax\FileStructure\BasicTypegetIterator()
public function getIterator(): Traversablehas()
public function has(PDF\Syntax\Object\NameType|string $key): booltoPdf()
public function toPdf(PDF\Serialization\SerializationContext $context): string