Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class FactoryClassGenerator extends AbstractClassGenerator |
||
11 | { |
||
12 | protected const TEMPLATE_NAME = 'factory-class.twig'; |
||
13 | |||
14 | /** |
||
15 | * @param \Jellyfish\Transfer\Definition\ClassDefinitionInterface $classDefinition |
||
16 | * |
||
17 | * @return string |
||
18 | */ |
||
19 | protected function getFile(ClassDefinitionInterface $classDefinition): string |
||
20 | { |
||
21 | return $classDefinition->getName() . ClassDefinition::FACTORY_NAME_SUFFIX . static::FILE_EXTENSION; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | protected function getTemplateName(): string |
||
30 | } |
||
31 | } |
||
32 |