MModStartinit
1e1f174c创建于 2022年5月28日历史提交
<?php

namespace League\CommonMark\Node;

final class NodeWalkerEvent
{
    /**
     * @var Node
     */
    private $node;

    /**
     * @var bool
     */
    private $isEntering;

    /**
     * @param Node $node
     * @param bool $isEntering
     */
    public function __construct(Node $node = null, $isEntering = true)
    {
        $this->node = $node;
        $this->isEntering = $isEntering;
    }

    /**
     * @return Node
     */
    public function getNode()
    {
        return $this->node;
    }

    /**
     * @return bool
     */
    public function isEntering()
    {
        return $this->isEntering;
    }
}