<?php
declare(strict_types=1);
namespace League\CommonMark\Node;
final class NodeWalkerEvent
{
private Node $node;
private bool $isEntering;
public function __construct(Node $node, bool $isEntering = true)
{
$this->node = $node;
$this->isEntering = $isEntering;
}
public function getNode(): Node
{
return $this->node;
}
public function isEntering(): bool
{
return $this->isEntering;
}
}