trafficmonitor/app/DTOs/Auth/GoogleDTO.php
2025-11-06 16:51:52 +09:00

26 lines
425 B
PHP

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