dbmsv4/app/DTOs/Part/SOFTWAREDTO.php
2025-11-19 11:16:04 +09:00

26 lines
495 B
PHP

<?php
namespace App\DTOs\Part;
use App\DTOs\CommonDTO;
class SOFTWAREDTO extends CommonDTO
{
public ?int $uid = null;
public ?string $title = null;
public ?int $price = null;
public ?string $used = null;
public ?int $stock = null;
public ?string $status = null;
public function __construct(array $datas = [])
{
parent::__construct();
foreach ($datas as $key => $value) {
if (property_exists($this, $key)) {
$this->{$key} = $value;
}
}
}
}