$value) { if (property_exists($this, $key)) { $this->{$key} = $value; } } } public function toArray(): array { return [ 'uid' => $this->uid, 'trafficinfo_uid' => $this->trafficinfo_uid, 'in' => $this->in, 'out' => $this->out, 'raw_in' => $this->raw_in, 'raw_out' => $this->raw_out, ]; } }