22 lines
367 B
PHP
22 lines
367 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Eyrie\Parser\Node;
|
|
|
|
class RootNode extends Node
|
|
{
|
|
/** @var Node[] */
|
|
public array $children = [];
|
|
|
|
public function __construct(int $line = 1)
|
|
{
|
|
parent::__construct($line);
|
|
}
|
|
|
|
public function __toString(): string
|
|
{
|
|
return implode('', array_map('strval', $this->children));
|
|
}
|
|
}
|