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