26 lines
570 B
PHP
26 lines
570 B
PHP
<?php
|
|
|
|
namespace App\Services\ServerProviders;
|
|
|
|
use App\Data\ServerProviders\CreatedServer;
|
|
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;
|
|
}
|