12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace common\util;
- class EmergencyResponseObj
- {
- public ?int $id;
- public ?int $accident_id;
- public ?int $type_first;
- public ?int $type_second;
- public ?int $type_third;
- public ?int $type_fourth;
- public int $start_time;
- public int $is_time_period;
- public int $end_time;
- public int $is_important;
- public ?string $important_content;
- public ?string $content;
- public array $rules;
- public ?string $assess;
- public ?string $assess_two;
- public array $source_data;
- public ?array $dimension;
- /**
- * @param $EmergencyResponse
- */
- public function __construct($EmergencyResponse)
- {
- $this->id = $EmergencyResponse->id;
- $this->accident_id = $EmergencyResponse->accident_id;
- $this->type_first = $EmergencyResponse->type_first;
- $this->type_second = $EmergencyResponse->type_second;
- $this->type_third = $EmergencyResponse->type_third;
- $this->type_fourth = $EmergencyResponse->type_fourth;
- $this->start_time = $EmergencyResponse->start_time;
- $this->is_time_period = $EmergencyResponse->is_time_period;
- $this->end_time = (int)$EmergencyResponse->end_time;
- $this->is_important = $EmergencyResponse->is_important;
- $this->important_content = $EmergencyResponse->important_content;
- $this->content = $EmergencyResponse->content;
- $this->rules = $EmergencyResponse->rules;
- $this->assess = $EmergencyResponse->assess;
- $this->assess_two = $EmergencyResponse->assess_two;
- $this->source_data = $EmergencyResponse->source_data;
- $this->dimension = $EmergencyResponse->dimension;
- }
- }
|