dbmsv4/app/DTOs/Equipment/ServerPartDTO.php
2025-11-19 10:18:16 +09:00

28 lines
610 B
PHP

<?php
namespace App\DTOs\Equipment;
use App\DTOs\CommonDTO;
class ServerPartDTO extends CommonDTO
{
public ?int $uid = null;
public ?string $serverinfo_uid = null;
public ?string $type = null;
public ?string $billing = null;
public ?int $part_uid = null;
public ?string $title = null;
public ?int $cnt = null;
public ?string $extra = null;
public ?string $amount = null;
public function __construct(array $datas = [])
{
parent::__construct();
foreach ($datas as $key => $value) {
if (property_exists($this, $key)) {
$this->{$key} = $value;
}
}
}
}