blob: 5c24cab123aff80e199da198f362c2aca4109f2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
/*
* Node.php - template parser node interface and classes
*
* Copyright (c) 2013 Elmar Ludwig
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*/
namespace exTpl;
/**
* Basic interface for nodes in the template parse tree. The only
* required method is "render" to render a node and its children.
*/
interface Node
{
/**
* Returns a string representation of this node.
*
* @param Context $context symbol table
*/
public function render(Context $context): ?string;
}
|