aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/src/Compile/CompilerInterface.php
blob: 5f2cc7ccc2125e18d8d0d0a2dec583848f3d04c9 (plain) (blame)
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
<?php

namespace Smarty\Compile;

/**
 * This class does extend all internal compile plugins
 *


 */
interface CompilerInterface {

	/**
	 * Compiles code for the tag
	 *
	 * @param array $args array with attributes from parser
	 * @param \Smarty\Compiler\Template $compiler compiler object
	 * @param array $parameter array with compilation parameter
	 *
	 * @return string compiled code as a string
	 * @throws \Smarty\CompilerException
	 */
	public function compile($args, \Smarty\Compiler\Template $compiler, $parameter = [], $tag = null, $function = null): string;

	public function isCacheable(): bool;
}