mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
18 lines
400 B
PHP
18 lines
400 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace SPC\store\pkg;
|
||
|
|
|
||
|
|
abstract class CustomPackage
|
||
|
|
{
|
||
|
|
abstract public function getSupportName(): array;
|
||
|
|
|
||
|
|
abstract public function fetch(string $name, bool $force = false, ?array $config = null): void;
|
||
|
|
|
||
|
|
public function extract(string $name): void
|
||
|
|
{
|
||
|
|
throw new \RuntimeException("Extract method not implemented for package: {$name}");
|
||
|
|
}
|
||
|
|
}
|