1: <?php
2:
3: /**
4: * XSLT Benchmarking
5: * @link https://github.com/masicek/XSLT-Benchmarking
6: * @author Viktor Mašíček <viktor@masicek.net>
7: * @license "New" BSD License
8: */
9:
10: namespace XSLTBenchmarking\TestsGenerator;
11:
12: /**
13: * Interface for object for generating XSLT file from template.
14: *
15: * @author Viktor Mašíček <viktor@masicek.net>
16: */
17: interface ITemplatingDriver
18: {
19:
20:
21: /**
22: * Object configuration
23: *
24: * @param string $tmpDirectory The path of the temporary directory
25: */
26: public function __construct($tmpDirectory);
27:
28:
29: /**
30: * Generate the template with specifis variable and save the content into the file
31: *
32: * @param string $templatePath Path of template for generating
33: * @param string $outputPath Path output file
34: * @param array $settings Array of settings specific for driver
35: *
36: * @throws \XSLTBenchmarking\GenerateTemplateException Problem with generating
37: * @return void
38: */
39: public function generate($templatePath, $outputPath, array $settings);
40:
41:
42: }
43: