Added setTemplateDefinition() method to the interface.

This commit is contained in:
Franck Allimant
2014-04-11 02:22:40 +02:00
parent 93d5444b8b
commit d02b973945

View File

@@ -38,6 +38,13 @@ interface ParserInterface
public function setStatus($status); public function setStatus($status);
/**
* Setup the parser with a template definition, which provides a template description.
*
* @param TemplateDefinition $templateDefinition
*/
public function setTemplateDefinition(TemplateDefinition $templateDefinition);
/** /**
* Add a template directory to the current template list * Add a template directory to the current template list
* *
@@ -54,7 +61,7 @@ interface ParserInterface
* Return the registeted template directories for a givent template type * Return the registeted template directories for a givent template type
* *
* @param unknown $templateType * @param unknown $templateType
* @throws InvalidArgumentException if the tempmateType is not defined * @throws \InvalidArgumentException if the templateType is not defined
* @return array: an array of defined templates directories for the given template type * @return array: an array of defined templates directories for the given template type
*/ */
public function getTemplateDirectories($templateType); public function getTemplateDirectories($templateType);