25 lines
506 B
PHP
25 lines
506 B
PHP
<?php
|
|
|
|
namespace App\DTOs;
|
|
|
|
class BoardDTO extends CommonDTO
|
|
{
|
|
public ?int $uid = null;
|
|
public ?int $user_uid = null;
|
|
public ?int $worker_uid = null;
|
|
public ?string $category = null;
|
|
public ?string $title = null;
|
|
public ?string $content = 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;
|
|
}
|
|
}
|
|
}
|
|
}
|