class final readonly Optional · pdftoolkit/html-to-pdf 0.4.0

PDF\HtmlToPdf\Model\Node

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(string $id, string $tag, array $attributes = [], array $children = [], string $text = '', PDF\HtmlToPdf\Style\ComputedStyle $style = new ComputedStyle())
@param array<string,string> $attributes
@param list<Node> $children

Declared by PDF\HtmlToPdf\Model\Node · View the code ↗

Declared methods

attribute()

public function attribute(string $name): ?string

Declared by PDF\HtmlToPdf\Model\Node · View the code ↗

isText()

public function isText(): bool

Declared by PDF\HtmlToPdf\Model\Node · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly array $attributesPDF\HtmlToPdf\Model\Node
public readonly array $childrenPDF\HtmlToPdf\Model\Node
public readonly string $idPDF\HtmlToPdf\Model\Node
public readonly PDF\HtmlToPdf\Style\ComputedStyle $stylePDF\HtmlToPdf\Model\Node
public readonly string $tagPDF\HtmlToPdf\Model\Node
public readonly string $textPDF\HtmlToPdf\Model\Node