Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class StatisticsProcessor extends Processor |
||
18 | { |
||
19 | /** @var TemplateEngine */ |
||
20 | private $engine; |
||
21 | |||
22 | public function __construct(TemplateEngine $engine = null) |
||
23 | { |
||
24 | $this->engine = $engine ?? new TemplateEngine(); |
||
25 | } |
||
26 | |||
27 | public function name(): string |
||
28 | { |
||
29 | return 'Statistics'; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @throws TemplateFailure |
||
34 | */ |
||
35 | public function process(Structure $structure): string |
||
41 | } |
||
42 | } |
||
43 |