| 1 | <?php |
||
| 17 | class HtmlReport implements ReportInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var \Twig_Environment |
||
| 21 | */ |
||
| 22 | private $twig; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $template; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * HtmlReport constructor. |
||
| 31 | * @param string $templatesDir |
||
| 32 | * @param array $optionTwig |
||
| 33 | */ |
||
| 34 | public function __construct($templatesDir = '', $optionTwig = []) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Build html report. |
||
| 45 | * |
||
| 46 | * @param DocumentInterface $document |
||
| 47 | * @param array $parameters |
||
| 48 | * @return bool|string |
||
| 49 | */ |
||
| 50 | public function build(DocumentInterface $document, $parameters = []) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Set filename templte. |
||
| 62 | * |
||
| 63 | * @param string $template |
||
| 64 | */ |
||
| 65 | public function setTemplate($template) |
||
| 69 | } |