Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | abstract class AbstractAction implements GeneratorInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $template = ''; |
||
16 | /** |
||
17 | * @var DataProviderInterface |
||
18 | */ |
||
19 | protected $provider; |
||
20 | |||
21 | 5 | public function __construct(DataProviderInterface $provider) |
|
22 | { |
||
23 | 5 | $this->provider = $provider; |
|
24 | 5 | } |
|
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | * @throws \Twig_Error_Loader |
||
29 | * @throws \Twig_Error_Runtime |
||
30 | * @throws \Twig_Error_Syntax |
||
31 | */ |
||
32 | 5 | public function generate(): string |
|
38 | } |
||
39 | } |
||
40 |