30 lines
667 B
PHP
30 lines
667 B
PHP
<?php
|
|
|
|
namespace App\DTOs\Equipment;
|
|
|
|
use App\DTOs\CommonDTO;
|
|
|
|
class ServerDTO extends CommonDTO
|
|
{
|
|
public ?int $uid = null;
|
|
public ?string $code = null;
|
|
public ?string $type = null;
|
|
public ?string $switch = null;
|
|
public ?string $ip = null;
|
|
public ?string $os = null;
|
|
public ?string $title = null;
|
|
public ?int $price = null;
|
|
public ?string $manufactur_at = null;
|
|
public ?string $format_at = 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;
|
|
}
|
|
}
|
|
}
|
|
}
|