20 lines
344 B
PHP
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;
|
|
}
|
|
}
|
|
}
|
|
}
|