lasthourcloud/app/Data/CoolifyTaskArgs.php

27 lines
633 B
PHP
Raw Normal View History

2023-05-03 05:15:45 +00:00
<?php
namespace App\Data;
use App\Enums\ProcessStatus;
use Illuminate\Database\Eloquent\Model;
use Spatie\LaravelData\Data;
2023-05-03 06:24:34 +00:00
/**
* The parameters to execute a CoolifyTask, organized in a DTO.
*/
2023-05-03 05:15:45 +00:00
class CoolifyTaskArgs extends Data
{
public function __construct(
public string $server_ip,
public string $private_key_location,
public string $command,
public int $port,
public string $user,
public string $type,
public ?string $type_uuid = null,
public ?Model $model = null,
public string $status = ProcessStatus::HOLDING->value,
) {
}
}