Sha256: b92f310488a4f1a6774dac012d42a6a5e89cbd58fc109b12f2f6f1100c637f52

Contents?: true

Size: 794 Bytes

Versions: 10

Compression:

Stored size: 794 Bytes

Contents

<?php

namespace MtHaml\Node;

use MtHaml\NodeVisitor\NodeVisitorInterface;

class Root extends NestAbstract
{
  public function __construct(array $position = null)
  {
      parent::__construct($position ?: array('lineno' => 0, 'column' => 0));
  }

  public function getNodeName()
  {
    return 'root';
  }

  public function accept(NodeVisitorInterface $visitor)
  {
      if (false !== $visitor->enterRoot($this)) {

          if (false !== $visitor->enterRootContent($this)) {
              $this->visitContent($visitor);
          }
          $visitor->leaveRootContent($this);

          if (false !== $visitor->enterRootChilds($this)) {
              $this->visitChilds($visitor);
          }
          $visitor->leaveRootChilds($this);
      }
      $visitor->leaveRoot($this);
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php
guard-mthaml-0.3.1 vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php
guard-mthaml-0.3.0 vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php
guard-mthaml-0.2.5 vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php
guard-mthaml-0.2.4 vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php
guard-mthaml-0.2.3 vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php
guard-mthaml-0.2.2 vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php
guard-mthaml-0.2.1 vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php
guard-mthaml-0.2.0 vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php
guard-mthaml-0.1.0 vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php