Total Complexity | 3 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | abstract class AbstractGenerator |
||
11 | { |
||
12 | protected const FILE_EXTENSION = '.php'; |
||
13 | |||
14 | /** |
||
15 | * @var \Jellyfish\Filesystem\FilesystemInterface |
||
16 | */ |
||
17 | protected $filesystem; |
||
18 | |||
19 | /** |
||
20 | * @var \Twig\Environment |
||
21 | */ |
||
22 | protected $twig; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $targetDirectory; |
||
28 | |||
29 | /** |
||
30 | * @param \Jellyfish\Filesystem\FilesystemInterface $filesystem |
||
31 | * @param \Twig\Environment $twig |
||
32 | * @param string $targetDirectory |
||
33 | */ |
||
34 | public function __construct( |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @param string $path |
||
46 | * |
||
47 | * @return \Jellyfish\Transfer\Generator\AbstractGenerator |
||
48 | */ |
||
49 | protected function createDirectories(string $path): AbstractGenerator |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | abstract protected function getTemplateName(): string; |
||
64 | } |
||
65 |