| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | abstract class BaseGeneratorCommand extends GeneratorCommand |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Instance of the repository |
||
| 13 | * |
||
| 14 | * @var \LaravelModulize\Contracts\ModulizerRepositoryInterface |
||
| 15 | */ |
||
| 16 | protected $repository; |
||
| 17 | |||
| 18 | protected $module; |
||
| 19 | protected $modulePath; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new command instance. |
||
| 23 | * |
||
| 24 | * @param \LaravelModulize\Contracts\ModulizerRepositoryInterface $repository |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | public function __construct(Filesystem $files, ModulizerRepositoryInterface $repository) |
||
| 28 | { |
||
| 29 | parent::__construct($files); |
||
| 30 | |||
| 31 | $this->repository = $repository; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Execute the console command. |
||
| 36 | * |
||
| 37 | * @return mixed |
||
| 38 | */ |
||
| 39 | public function handle() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |