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