| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 9 | abstract class BaseGenerator implements GeneratorInterface |
||
| 10 | { |
||
| 11 | use GeneratorNameTrait; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $stubDir = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Parser |
||
| 20 | */ |
||
| 21 | protected $parser = null; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var Type |
||
| 25 | */ |
||
| 26 | protected $type = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Parser $parser |
||
| 30 | * @param string $name The target type name. |
||
| 31 | * @param Type|string $type |
||
| 32 | */ |
||
| 33 | public function __construct(Parser $parser, string $name, $type = null) |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | protected function phpHeader(): string |
||
| 59 |