| Total Complexity | 3 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | abstract class AbstractInstaller extends Command implements InstallerContract |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Holds an instance of Files. |
||
| 28 | * |
||
| 29 | * @var \Illuminate\Filesystem\Filesystem |
||
| 30 | */ |
||
| 31 | protected $files; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Holds an instance of composer. |
||
| 35 | * |
||
| 36 | * @var \LaravelZero\Framework\Contracts\Providers\ComposerContract |
||
| 37 | */ |
||
| 38 | protected $composer; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * AbstractInstaller constructor. |
||
| 42 | */ |
||
| 43 | 14 | public function __construct(Filesystem $files, ComposerContract $composer) |
|
| 44 | { |
||
| 45 | 14 | parent::__construct(); |
|
| 46 | |||
| 47 | 14 | $this->files = $files; |
|
| 48 | |||
| 49 | 14 | $this->composer = $composer; |
|
| 50 | 14 | } |
|
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | 14 | public function handle() |
|
| 58 | 14 | } |
|
| 59 | |||
| 60 | /** |
||
| 61 | * Requires the provided package. |
||
| 62 | * |
||
| 63 | * @param string $package |
||
| 64 | * @param bool $dev |
||
| 65 | * |
||
| 66 | * @return \LaravelZero\Framework\Contracts\Commands\Component\InstallerContract |
||
| 67 | */ |
||
| 68 | 12 | protected function require(string $package, bool $dev = false): InstallerContract |
|
| 80 |