29 lines
675 B
PHP
29 lines
675 B
PHP
<?php
|
|
|
|
namespace App\Services\ServerProviders;
|
|
|
|
use App\Data\ServerProviders\CreatedServer;
|
|
use App\Data\ServerProviders\Network;
|
|
use Illuminate\Support\Collection;
|
|
use Saloon\Http\Connector;
|
|
|
|
abstract class ServerProviderService
|
|
{
|
|
protected Connector $connector;
|
|
|
|
abstract public function createServer(
|
|
string $name,
|
|
string $serverType,
|
|
string $location,
|
|
string $image,
|
|
): CreatedServer;
|
|
|
|
abstract public function getServerTypes(): Collection;
|
|
|
|
abstract public function getLocations(): Collection;
|
|
|
|
abstract public function getImages(): Collection;
|
|
|
|
abstract public function findNetwork(string $name): ?Network;
|
|
}
|