29 lines
589 B
PHP
29 lines
589 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Scape\Parser\Node;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Class IncludeNode
|
||
|
|
*
|
||
|
|
* Represents an {[ include 'path' ]} tag.
|
||
|
|
*
|
||
|
|
* @package Scape\Parser\Node
|
||
|
|
*/
|
||
|
|
class IncludeNode extends Node
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @param string $path The dot-notated path to the partial.
|
||
|
|
* @param string|null $context The data source (variable name, 'context', or null).
|
||
|
|
* @param int $line
|
||
|
|
*/
|
||
|
|
public function __construct(
|
||
|
|
public readonly string $path,
|
||
|
|
public readonly ?string $context,
|
||
|
|
int $line
|
||
|
|
) {
|
||
|
|
parent::__construct($line);
|
||
|
|
}
|
||
|
|
}
|