| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | abstract class AbstractWriterConfig implements WriterConfigInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $directory; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var null|string |
||
| 14 | */ |
||
| 15 | protected $namespace = ''; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var null|string |
||
| 19 | */ |
||
| 20 | protected $classPrefix = ''; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var null|string |
||
| 24 | */ |
||
| 25 | protected $classSuffix = ''; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function getDirectory(): string |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return null|string |
||
| 37 | */ |
||
| 38 | public function getNamespace(): ?string |
||
| 39 | { |
||
| 40 | return \trim($this->namespace, '\\'); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return null|string |
||
| 45 | */ |
||
| 46 | public function getClassPrefix(): ?string |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return null|string |
||
| 53 | */ |
||
| 54 | public function getClassSuffix(): ?string |
||
| 57 | } |
||
| 58 | } |
||
| 59 |