30 lines
647 B
PHP
30 lines
647 B
PHP
<?php
|
|
|
|
namespace App\DTOs\Part;
|
|
|
|
use App\DTOs\CommonDTO;
|
|
|
|
class CSDTO extends CommonDTO
|
|
{
|
|
public ?int $uid = null;
|
|
public ?int $clientinfo_uid = null;
|
|
public ?int $serviceinfo_uid = null;
|
|
public ?int $serverinfo_uid = null;
|
|
public ?string $type = null;
|
|
public ?string $ip = null;
|
|
public ?string $accountid = null;
|
|
public ?string $domain = null;
|
|
public ?int $price = 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;
|
|
}
|
|
}
|
|
}
|
|
}
|