26 lines
425 B
PHP
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,
|
|
];
|
|
}
|
|
}
|