Hetzner Service, DTOs, provision script
This commit is contained in:
13
app/Data/ServerProviders/Image.php
Normal file
13
app/Data/ServerProviders/Image.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Data\ServerProviders;
|
||||
|
||||
class Image
|
||||
{
|
||||
public function __construct(
|
||||
public string $id,
|
||||
public string $name,
|
||||
public string $osFlavor,
|
||||
public string $osVersion,
|
||||
) {}
|
||||
}
|
||||
13
app/Data/ServerProviders/Location.php
Normal file
13
app/Data/ServerProviders/Location.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Data\ServerProviders;
|
||||
|
||||
class Location
|
||||
{
|
||||
public function __construct(
|
||||
public string $id,
|
||||
public string $name,
|
||||
public string $country,
|
||||
public string $city,
|
||||
) {}
|
||||
}
|
||||
22
app/Data/ServerProviders/ServerType.php
Normal file
22
app/Data/ServerProviders/ServerType.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Data\ServerProviders;
|
||||
|
||||
class ServerType
|
||||
{
|
||||
/**
|
||||
* @param string $name The name of the server type
|
||||
* @param int $cores The number of cores
|
||||
* @param int $memory The amount of memory in MB
|
||||
* @param int $disk The amount of disk space in GB
|
||||
*/
|
||||
public function __construct(
|
||||
public string $id,
|
||||
public string $name,
|
||||
public int $cores,
|
||||
public int $memory,
|
||||
public int $disk,
|
||||
public float $priceMonthly,
|
||||
public float $priceHourly,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user