API / Minn\Html\Tree / Event

Event final readonly class

Minn\Html\Tree\Event · public/minn/src/Minn/Html/Tree/Event.php · 17 lines

One step of the walk the HTML processor reports: a node opened (pushed) or closed (popped), the breadcrumbs at that moment, and the offset of the token behind it when the document wrote it (null when implied).

Uses 1
Used by 1

Constants and properties

propreadonly string $op

Promoted from the constructor.

propreadonly Minn\Html\Tree\Node $node

Promoted from the constructor.

propreadonly array $breadcrumbs

Promoted from the constructor.

propreadonly ?int $offset

Promoted from the constructor.

Public

new__construct(string $op, Minn\Html\Tree\Node $node, array $breadcrumbs, ?int $offset)#
$breadcrumbslist<string>
methodisCloser(): bool#

Whether this event closes its node.