22 lines
404 B
PHP
22 lines
404 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Eyrie\Parser\Node;
|
||
|
|
|
||
|
|
class IncludeNode extends Node
|
||
|
|
{
|
||
|
|
public function __construct(
|
||
|
|
public readonly string $template,
|
||
|
|
public readonly array $context = [],
|
||
|
|
int $line = 0
|
||
|
|
) {
|
||
|
|
parent::__construct($line);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function __toString(): string
|
||
|
|
{
|
||
|
|
return "[[ include \"" . $this->template . "\" ]]";
|
||
|
|
}
|
||
|
|
}
|