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

PDF\HtmlToPdf\Css\BorderComputer
Converts resolved longhands; cascade/global keywords are handled by StyleComputer.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Declared methods

compute()

public function compute(array $raw, float $fontSize, float $rootSize, PDF\HtmlToPdf\Style\Color $current): PDF\HtmlToPdf\Style\Borders
@param array<string,string> $raw

Declared by PDF\HtmlToPdf\Css\BorderComputer · View the code ↗

defaults()

public function defaults(): array
@return array<string,string>

Declared by PDF\HtmlToPdf\Css\BorderComputer · View the code ↗

serialize()

public function serialize(PDF\HtmlToPdf\Style\Borders $borders): array
@return array<string,string>

Declared by PDF\HtmlToPdf\Css\BorderComputer · View the code ↗