trafficmonitor/app/DTOs/CollectorDTO.php

24 lines
463 B
PHP

<?php
namespace App\DTOs;
class CollectorDTO extends CommonDTO
{
public ?int $uid = null;
public ?int $trafficinfo_uid = null;
public ?int $in = null;
public ?int $out = null;
public ?int $raw_in = null;
public ?int $raw_out = null;
public function __construct(array $datas = [])
{
parent::__construct();
foreach ($datas as $key => $value) {
if (property_exists($this, $key)) {
$this->{$key} = $value;
}
}
}
}