EmergencyResponseObj.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace common\util;
  3. class EmergencyResponseObj
  4. {
  5. public ?int $id;
  6. public ?int $accident_id;
  7. public ?int $type_first;
  8. public ?int $type_second;
  9. public ?int $type_third;
  10. public ?int $type_fourth;
  11. public int $start_time;
  12. public int $is_time_period;
  13. public int $end_time;
  14. public int $is_important;
  15. public ?string $important_content;
  16. public ?string $content;
  17. public array $rules;
  18. public ?string $assess;
  19. public ?string $assess_two;
  20. public array $source_data;
  21. public ?array $dimension;
  22. /**
  23. * @param $EmergencyResponse
  24. */
  25. public function __construct($EmergencyResponse)
  26. {
  27. $this->id = $EmergencyResponse->id;
  28. $this->accident_id = $EmergencyResponse->accident_id;
  29. $this->type_first = $EmergencyResponse->type_first;
  30. $this->type_second = $EmergencyResponse->type_second;
  31. $this->type_third = $EmergencyResponse->type_third;
  32. $this->type_fourth = $EmergencyResponse->type_fourth;
  33. $this->start_time = $EmergencyResponse->start_time;
  34. $this->is_time_period = $EmergencyResponse->is_time_period;
  35. $this->end_time = (int)$EmergencyResponse->end_time;
  36. $this->is_important = $EmergencyResponse->is_important;
  37. $this->important_content = $EmergencyResponse->important_content;
  38. $this->content = $EmergencyResponse->content;
  39. $this->rules = $EmergencyResponse->rules;
  40. $this->assess = $EmergencyResponse->assess;
  41. $this->assess_two = $EmergencyResponse->assess_two;
  42. $this->source_data = $EmergencyResponse->source_data;
  43. $this->dimension = $EmergencyResponse->dimension;
  44. }
  45. }