Files
smarty/src/Compile/CompilerInterface.php
T

26 lines
611 B
PHP
Raw Normal View History

2023-08-08 00:04:14 +02:00
<?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
2023-08-08 00:04:14 +02:00
* @throws \Smarty\CompilerException
*/
public function compile($args, \Smarty\Compiler\Template $compiler, $parameter = [], $tag = null, $function = null): string;
2023-08-08 00:04:14 +02:00
public function isCacheable(): bool;
}