| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | abstract class AbstractGenerator { |
||
| 8 | protected $variants; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Set generator content from string |
||
| 12 | * @param string $content |
||
| 13 | */ |
||
| 14 | abstract public function setContent(string $content); |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Get generator result as string |
||
| 18 | * |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | abstract public function toString(): string; |
||
| 22 | |||
| 23 | abstract public function setMediator(AbstractMediator $mediator): void; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get full filename |
||
| 27 | */ |
||
| 28 | abstract public function getPath(): string; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get template path |
||
| 32 | */ |
||
| 33 | abstract public function getTemplateFilename(): string; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get unique generator key based on params |
||
| 37 | */ |
||
| 38 | public function getKey(): string |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get variants for setting/option |
||
| 45 | * |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function getVariants(string $option) |
||
| 57 |