dbmsv4/app/DTOs/Auth/LocalDTO.php
2025-11-19 12:34:00 +09:00

20 lines
344 B
PHP

<?php
namespace App\DTOs\Auth;
class LocalDTO extends AuthDTO
{
public ?string $id = null;
public ?string $passwd = null;
public function __construct(array $datas = [])
{
parent::__construct();
foreach ($datas as $key => $value) {
if (property_exists($this, $key)) {
$this->{$key} = $value;
}
}
}
}